adf and tinymce html editor
829531Feb 15 2011 — edited Feb 23 2011H,
I call tinymce html editor using ExtendedRenderKitService in jsf managedbean, now I can see the editor in jsf page ,but I can not get the tinymce value from managedbean.Is it possible to get value from managedbean?
Here is the code,
FacesContext facesCtx = FacesContext.getCurrentInstance();
ExtendedRenderKitService service = Service.getRenderKitService(facesCtx, ExtendedRenderKitService.class);
service.addScript(facesCtx, " tinyMCE.init({\n" +
" // General options\n" +
" mode : \"textareas\",\n" +
" theme : \"advanced\",\n" +
" plugins : \"spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template\",\n" +
" \n" +
" // Theme options\n" +
" theme_advanced_buttons1 : \"save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect\",\n" +
" theme_advanced_buttons2 : \"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor\",\n" +
" theme_advanced_buttons3 : \"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen\",\n" +
" theme_advanced_buttons4 : \"insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage\",\n" +
" theme_advanced_toolbar_location : \"top\",\n" +
" theme_advanced_toolbar_align : \"left\",\n" +
" theme_advanced_statusbar_location : \"bottom\",\n" +
" theme_advanced_resizing : true,\n" +
" \n" +
" // Skin options\n" +
" skin : \"o2k7\",\n" +
" skin_variant : \"silver\",\n" +
" \n" +
" // Example content CSS (should be your site CSS)\n" +
" content_css : \"css/example.css\",\n" +
" \n" +
" // Drop lists for link/image/media/template dialogs\n" +
" template_external_list_url : \"js/template_list.js\",\n" +
" external_link_list_url : \"js/link_list.js\",\n" +
" external_image_list_url : \"js/image_list.js\",\n" +
" media_external_list_url : \"js/media_list.js\",\n" +
" \n" +
" // Replace values for the template plugin\n" +
" template_replace_values : {\n" +
" username : \"Some User\",\n" +
" staffid : \"991234\"\n" +
" }\n" +
" });");
thx,