Hi Aaron,

I resolved my problem using ERXJavaScript. TinyMCE works great.

Thank you all

Envoyé de mon iPhone

Le 20 sept. 2011 à 18:04, [email protected] a écrit :

> Hi Raymond, 
> 
> Not sure what to tell you. 
> 
> First try with raw HTML to get an example working. Take WO and Eclipse 
> totally out of the picture. Once you gain your footing there then come back 
> and tackle putting it in WO. 
> 
> I've never used the WOJavascript component before but probably what you did 
> is ok. You could try "addScriptURLInHead()" or something else but don't worry 
> about that right now. Just focus on raw HTML files and getting a proof of 
> concept working. 
> 
> I don't have any examples where I've used TinyMCE readily available to cut 
> and paste for you. Sorry I cannot be of more help. 
> 
> -- Aaron 
> 
> 
> 
> 
> 
> From:        Raymond NANEON <[email protected]> 
> To:        Raymond NANEON <[email protected]> 
> Cc:        Chuck Hill <[email protected]>, 
> "[email protected]" <[email protected]>, 
> "[email protected]" <[email protected]>, Pascal Robert 
> <[email protected]> 
> Date:        09/19/2011 03:09 AM 
> Subject:        Rép : Re: (Call him Pascall) WOComponent and RTF text 
> 
> 
> 
> Hi All, 
> 
> I tried tinyMCE but I had big surprise. All java script 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;
> 
> 
> 
> }
> 
> Thanks for your help 
> Envoyé depuis iCloud 
> 
> Le 16 sep 2011 à 12:45, Raymond NANEON <[email protected]> a écrit :
> 
> I see we laugh very well here. Thank you all for ideas you sent me. I will 
> test them on Monday at the office
> 
> Envoyé de mon iPhone
> 
> Le 16 sept. 2011 à 20:56, Chuck Hill <[email protected]> a écrit :
> 
> > 
> > On 2011-09-16, at 11:54 AM, Pascal Robert wrote:
> > 
> >> 
> >> Le 2011-09-16 à 14:46, Ramsey Gurley a écrit :
> >> 
> >>> 
> >>> On Sep 16, 2011, at 10:00 AM, [email protected] wrote:
> >>> 
> >>>> Hi Raymond, 
> >>>> 
> >>>> You'll get a better response from Pascal if you call him by his first 
> >>>> name... Pascal. 
> >>>> 
> >>>> Call him "Amazing" call him "Cool" but please... please do not call him 
> >>>> "Rob". 
> >>>> 
> >>> 
> >>> Although, sometimes he goes by the name Elvis 
> >> 
> >> I will regret it, but anyway:
> >> 
> >> http://a7.sphotos.ak.fbcdn.net/photos-ak-snc1/v2133/6/38/654360977/n654360977_1453909_5007.jpg
> > 
> > That is one burning, burning hunk of love. :-P
> > 
> > 
> > -- 
> > Chuck Hill Senior Consultant / VP Development
> > 
> > Practical WebObjects - for developers who want to increase their overall 
> > knowledge of WebObjects or who are trying to solve specific problems. 
> > http://www.global-village.net/products/practical_webobjects
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > http://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com
> > 
> > This email sent to [email protected]
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com
> 
> This email sent to [email protected] 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to