• 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
Re: configuring tiny_mce.. solution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configuring tiny_mce.. solution


  • Subject: Re: configuring tiny_mce.. solution
  • From: David LeBer <email@hidden>
  • Date: Fri, 02 Dec 2011 13:01:52 -0500

James,

The canonical Wonder API reference is here: <http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/>

Specific documentation for EREditHTML is lacking I admit (feel free to enhance the Java dock header and issue a pull request).

There are two example text modes provided in the ERDirectToWeb framework's rules:

0 : *true* => simpleRichTextMode = "mode : 'textareas', theme : 'simple'" [com.webobjects.directtoweb.Assignment]
0 : *true* => complexRichTextMode = "mode : 'textareas', theme: 'advanced', theme_advanced_layout_manager : 'SimpleLayout', theme_advanced_buttons1 : 'separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor'" [com.webobjects.directtoweb.Assignment]

They are really just a string representing the tiny mce config so you are best to look to that documentation for details. i.e: <http://www.tinymce.com/tryit/full.php>

The simpleRichTextMode is selected by default with this rule:

50 : *true* => richTextMode = "simpleRichTextMode" [er.directtoweb.ERDKeyValueAssignment]

It is expected that you will override this in your app i.e:

100 : *true* => richTextMode = "cmsRichTextMode" [er.directtoweb.ERDKeyValueAssignment]

The cmsRichTextMode is from one of my apps, and seems to have migrated into the blog example. ;-)

D

--
David LeBer
Codeferous Software

On 2011-12-02, at 12:35 PM, James Cicenia wrote:

> FWIW
>
> I could only find some reference to richTexMode here:
>
> http://aurealis.de/webobjects/wonder/api/html/classer_1_1directtoweb_1_1components_1_1strings_1_1_e_r_d_edit_h_t_m_l.html
>
> and it was private.
>
> So I lucked out by making your rule/key point to richTextMode/key. And it worked!
>
> However, what and where are these TextModes officially documented?
>
> - James
>
>
>
> On Dec 2, 2011, at 11:08 AM, David LeBer wrote:
>
>> Yeah,
>>
>> Take a look at the rules defining:
>>
>> 	richTextMode
>> 	simpleRichTextMode
>> 	complexRichTextMode
>>
>> In ERDirectToWeb
>>
>> Here is another example:
>>
>> 0 : *true* => cmsRichTextMode = "mode : 'textareas', theme: 'advanced', plugins: 'paste', theme_advanced_buttons1: 'pastetext,pasteword,bold,italic,formatselect,justifyleft,justifycenter,justifyright,bullist,numlist,undo,redo,link,unlink,code', theme_advanced_buttons2 : '',   theme_advanced_buttons3 : '', theme_advanced_toolbar_location : 'top', theme_advanced_toolbar_align : 'left', theme_advanced_statusbar_location : 'bottom', theme_advanced_resizing : true" [com.webobjects.directtoweb.Assignment]
>>
>> --
>> David LeBer
>> Codeferous Software
>>
>> On 2011-12-02, at 11:52 AM, James Cicenia wrote:
>>
>>> Can I add more things to tiny_mce?
>>> Font color , size?
>>>
>>> I am using wonder and have this set in my properties
>>> er.directtoweb.ERDEditHTML.tinyMceSourceFileName = tiny_mce/tiny_mce.js
>>>
>>> do I do it in a rule?
>>>
>>> Thanks
>>> James
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
> _______________________________________________
> 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

 _______________________________________________
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

References: 
 >configuring tiny_mce (From: James Cicenia <email@hidden>)
 >Re: configuring tiny_mce (From: David LeBer <email@hidden>)
 >Re: configuring tiny_mce.. solution (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: configuring tiny_mce.. solution
  • Next by Date: Re: Restoring session after timeout.
  • Previous by thread: Re: configuring tiny_mce.. solution
  • Next by thread: D2W WizardPage with Save button on all pages?
  • Index(es):
    • Date
    • Thread