Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.X EE, 7.0.0 DXP SP2, Master
-
7.0.x
-
Committed
-
1.25
-
2
-
Regression Bug
Description
For 6.2.x:
- Add the following to portal-ext.properties:
editor.wysiwyg.test=bbcode
- Create a JSP page with the following:
<% String test = "<script>alert(123)</script>"; %> <liferay-ui:input-editor contents="foo" editorImpl="editor.wysiwyg.test" name="<%= test %>" toolbarSet="bbcode" />
- View the rendered page in a browser
Result
Even though there is no pop-up show up, the following error displays in the browser console when the page is loading. Then the page is unclickable.
Uncaught TypeError: Cannot read property 'bbCode' of undefined(...)
Expected Result
No javaScript error.
For Master and 7.0.x EE:
- Add these properties:
editor.wysiwyg.test1=alloyeditor editor.wysiwyg.test2=alloyeditor_bbcode editor.wysiwyg.test3=alloyeditor_creole editor.wysiwyg.test4=ckeditor editor.wysiwyg.test5=ckeditor_bbcode editor.wysiwyg.test6=ckeditor_creole editor.wysiwyg.test7=simple editor.wysiwyg.test8=tinymce editor.wysiwyg.test9=tinymce_simple
- Append the JSP codes to view.jsp of AP.
- Add an AP.
- Change editorImpl and then view the page.
Result
The following error displays in the browser console when the page is loading.
Uncaught TypeError: Cannot read property 'attr' of null(...)
Expected Result
No javaScript error.