tinyMCE not defined error in comment on SE colection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
17.04 |
Fix Released
|
High
|
Unassigned | ||
17.10 |
Fix Released
|
High
|
Unassigned | ||
18.04 |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
18.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
to test:
Go to admin menu-> Extensions -> Plugin admin and enable annotations
create a page and add an annotation to it
share it with Public
log out and go to the collection first page (not SE view table)
try to leave a comment as anonymous user
the page will be stuck loading and the comment is never submitted
in the browser's console we can see the error:
Uncaught ReferenceError: tinyMCE is not defined
at isTinyMceUsed (annotation.
at addFeedbackSuccess (viewmenu.
at Object.
at sendResult (view.php?id=7:4)
at onload (view.php?id=7:7)
Changed in mahara: | |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
As we are not using a tinyMCE form for comments when logged out but instead a normal text field, there is an exception in annotation.js file.
It fails when calling isTinyMceUsed()