Details
Description
When I try to put an <ice:inputRichText /> component in a Liferay Facelets portlet, Firefox reports a JavaScript error on this rendered line in the HTML page:
<script type="text/javascript">Ice.FCKeditor.register ('_id2:_id4', new Ice.FCKeditor('_id2:_id4', '','da', '', '/icetest-portlet/block/resource/LTQ5MTYyMDg1Mw==/','100%', '200'));</script>
The error is "Ice.FCKeditor has no properties"
I've attached a sample portlet that will enable you to reproduce the error. To install, simply copy the attached file to your Liferay "Hot Deploy" folder, and then startup Liferay 4.3.3. The portlet can be found under the "Add Content" menu in the "Sample" category. It is named "ICEfaces Test"
<script type="text/javascript">Ice.FCKeditor.register ('_id2:_id4', new Ice.FCKeditor('_id2:_id4', '','da', '', '/icetest-portlet/block/resource/LTQ5MTYyMDg1Mw==/','100%', '200'));</script>
The error is "Ice.FCKeditor has no properties"
I've attached a sample portlet that will enable you to reproduce the error. To install, simply copy the attached file to your Liferay "Hot Deploy" folder, and then startup Liferay 4.3.3. The portlet can be found under the "Add Content" menu in the "Sample" category. It is named "ICEfaces Test"
Issue Links
- depends on
-
ICE-2542 Portlet-friendly injection of 3rd party JavaScript
- Closed
Activity
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Ken Fyten
made changes -
Fix Version/s | 1.7 [ 10080 ] |
Ken Fyten
made changes -
Fix Version/s | 1.7Beta1 [ 10121 ] | |
Fix Version/s | 1.7 [ 10080 ] |
Deryk Sinotte
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Deryk Sinotte
made changes -
Ken Fyten
made changes -
Assignee | Adnan Durrani [ adnan.durrani ] | Deryk Sinotte [ deryk.sinotte ] |
Ken Fyten
made changes -
Fix Version/s | 1.7 [ 10080 ] | |
Assignee | Adnan Durrani [ adnan.durrani ] |
Neil Griffin
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | icetest-portlet-4.3.3.1.war [ 10721 ] |
Neil Griffin
created issue -
The common issue of injecting component-specific JavaScript has been fixed. The Rich Text Editor now works in a portlet environment. Resolving as fixed.