I tried tinyMCE but I had big surprise. All _javascript_ language in head of my app is displayed. What's wrong with tinyMCE?
...
the WOD :
tinyMCE : WOJavaScript {
scriptFile = "tiny_mce/tiny_mce.js";
}
tinyMCEInit : WOJavaScript {
scriptFile = "tiny_mce/tinyMCEInit.js";
}
I create init file :
tinyMCE.init({
mode:"textareas",
width:"100%",
editor_selector:"advancedEditor",
theme:"advanced",
relative_urls:true,// Needed for anchors
convert_urls:false,// Needed for images
remove_script_host:true,// Needed for images
theme_advanced_source_editor_wrap:true,
apply_source_formatting:true,
plugins:"safari,contextmenu,directionality,table,save,advhr,advimage,advlink,preview,style,fullscreen",
theme_advanced_toolbar_location:"top",
theme_advanced_toolbar_align:"left",
theme_advanced_buttons1:"bold,italic,underline,forecolor,backcolor,styleprops,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2:"image,table,link,unlink,anchor,advhr,charmap,pasteword,separator,bullist,numlist,indent,outdent,separator,sub,sup,separator,ltr,rtl,separator,removeformat,code,undo,redo,fullscreen",
theme_advanced_buttons3:"",
extended_valid_elements:"*[*]",
auto_cleanup_word:true,
convert_newlines_to_brs:false,
force_p_newlines:true,
force_br_newlines:false,
setupcontent_callback:"myCustomSetupContent",
language:"fr"
});
So when I want to have rich text I use :
<webobject name = "formMsg" />
---
formMsg : WOText{
name = "message";
value = annoCtrl.message;
cols = 80;
rows = 20;
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden