-
1. Re: rich:editor - how to access ckeditor object instance?
bleathem Sep 12, 2013 12:44 PM (in response to sanyika)What version or RichFaces are you using?
-
2. Re: rich:editor - how to access ckeditor object instance?
sanyika Sep 13, 2013 4:24 AM (in response to bleathem)
Hi,I am using 4.2.2 Final
-
3. Re: Re: rich:editor - how to access ckeditor object instance?
bleathem Sep 13, 2013 9:31 AM (in response to sanyika)In RichFaces 4, use the RichFaces.$ javascript function to get the RichFaces component javascript object from a DOM element or a it's id.
So your sample code would look like this:
function setup(riched){ var ckeditor = RichFaces.component(riched.parentNode).getEditor(); ... }
-
4. Re: rich:editor - how to access ckeditor object instance?
sanyika Sep 25, 2013 4:33 AM (in response to sanyika)Hi Brian,
thank you for your answer, unfortunately I get now the following exception:
TypeError: RichFaces.component is not a function
Thank you for your help.
-
5. Re: Re: rich:editor - how to access ckeditor object instance?
sanyika Sep 25, 2013 5:48 AM (in response to bleathem)Hi Brian,
thank you for your answer, unfortunately I get now the following exception:
TypeError: RichFaces.component is not a function
Thank you for your help.
-
6. Re: rich:editor - how to access ckeditor object instance?
bleathem Sep 27, 2013 11:38 AM (in response to sanyika)Is the richfaces.js resource present on your page?
-
7. Re: rich:editor - how to access ckeditor object instance?
lfryc Sep 29, 2013 3:54 PM (in response to bleathem)In RichFaces <= 4.3 you need to use RichFaces.$ function
e.g.:
RichFaces.$(editorClientId).getEditor() or
or simply
#{rich:component('editorId')}.getEditor()