-
1. Re: TinyMCE with jsf and ajax4jsf/richfaces
xiaocase Mar 18, 2007 9:31 AM (in response to xiaocase)I'm sorry, losed the xhtml code::
//<![CDATA[
tinyMCE.init({
mode: "textareas",
theme: "advanced",
table_inline_editing: true,
plugins: "contextmenu,table,paste,",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: true,
theme_advanced_resize_horizontal: false,
theme_advanced_toolbar_location: "top"
});
//]]> -
2. Re: TinyMCE with jsf and ajax4jsf/richfaces
sergeysmirnov Mar 19, 2007 3:24 PM (in response to xiaocase)It looks like the second post does not contain it also. Use [ code ] in your posts to surround the code to avoid missing something inside it.
-
3. Re: TinyMCE with jsf and ajax4jsf/richfaces
xiaocase Mar 20, 2007 6:35 AM (in response to xiaocase)O, I'm sorry,, The codes are:::
<script type="text/javascript" src="../scripts/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> //<![CDATA[ tinyMCE.init({ mode: "textareas", theme: "advanced", table_inline_editing: true, plugins: "contextmenu,table,paste,", theme_advanced_statusbar_location: "bottom", theme_advanced_resizing: true, theme_advanced_resize_horizontal: false, theme_advanced_toolbar_location: "top" }); //]]> </script> <h:inputTextarea required="true" id="name" value="#{person.name}" cols="120" rows="15"> <a4j:support event="onkeyup" reRender="repeater" /> </h:inputTextarea>
-
4. Re: TinyMCE with jsf and ajax4jsf/richfaces
xiaocase Mar 21, 2007 2:54 AM (in response to xiaocase)Why this sample can't work???
Is there any help???
Thank you -
5. Re: TinyMCE with jsf and ajax4jsf/richfaces
sergeysmirnov Mar 21, 2007 1:15 PM (in response to xiaocase)It cannot work because of nature of the TinyMCE editor.
When you apply TinyMCE to one of the textarea, the new iframe is created, but the textarea is accomplished with style="display:none".
When user edits the text the iframe is updated, but not the textarea. textarea reminds invisible. You have no chance to do something "onkeyup" attached to the textarea as soon as textarea is not changed during the editing. -
6. Re: TinyMCE with jsf and ajax4jsf/richfaces
xiaocase Mar 21, 2007 9:42 PM (in response to xiaocase)Is there any examples to show how it works with jsf????
Thank you very much!!