-
1. Re: Problem with a dynamic RichFaces editor
jmiguel77 Nov 21, 2012 5:31 PM (in response to jmiguel77)So far, i deleted the web.xml entries i mentioned before, and in my xhtml page i added this:
<h:outputScript name="editor.js" library="org.richfaces" />
<h:outputScript name="ckeditor.js" library="org.richfaces.ckeditor" />
now, when i try to add the editor i get this javascript editor:
Error: TypeError: m.lang.contextmenu is undefined
Source File: http://localhost:8080/harpy/javax.faces.resource/ckeditor.js.jsf?ln=org.richfaces.ckeditor
Line: 49
any ideas richfaces people ??
-
2. Re: Problem with a dynamic RichFaces editor
jmiguel77 Nov 22, 2012 2:36 PM (in response to jmiguel77)Ok, found out the solution
i placed this variable i a script tag
window.CKEDITOR_BASEPATH = '#{request.contextPath}/org.richfaces.resources/javax.faces.resource/org.richfaces.ckeditor/';
the important thing is, that the variable has to exists, BEFORE calling the editor script