• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Rép : Re: (Call him Pascall) WOComponent and RTF text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rép : Re: (Call him Pascall) WOComponent and RTF text


  • Subject: Rép : Re: (Call him Pascall) WOComponent and RTF text
  • From: Raymond NANEON <email@hidden>
  • Date: Mon, 19 Sep 2011 07:08:58 +0000 (GMT)

Hi All,

I tried tinyMCE but I had big surprise. All _javascript_ language in head of my app is displayed. What's wrong with tinyMCE?

Here is the head :

<head>
...

    <!-- tinyMCE -->

    <webobject name = "tinyMCE" />

    <webobject name = "tinyMCEInit"/>

    <!--END tinyMCE  -->

  </head>

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

  • Follow-Ups:
    • Re: (Call him Pascal) WOComponent and RTF text
      • From: email@hidden
References: 
 >Re: (Call him Pascall) WOComponent and RTF text (From: Raymond NANEON <email@hidden>)

  • Prev by Date: Bundle loading during unit testing outside Eclipse
  • Next by Date: Re: Wonder vs WO app/framework in WOLips
  • Previous by thread: Re: (Call him Pascall) WOComponent and RTF text
  • Next by thread: Re: (Call him Pascal) WOComponent and RTF text
  • Index(es):
    • Date
    • Thread