The key is mce_editable as follows:

editorTest: WOText {
id = "myTextArea";
name = "myTextArea";
value = editorTestText;
cols = 70;
rows = 10;
mce_editable = "true";
}

And it might be better if you let the web server handle the _javascript_ instead of running it through WebObjects. That way you get better performance and you can update to a later version without having to rebuild and redeploy-- although that will only work in normal deployment.

Regards
Thomas

On 26/06/2006, at 23:50, Paul Fox wrote:

Hi!

I am a newbie to WebObjects, I am trying to get either TinyMCE or FCKeditor to work with my application. I have read some of the archived mails on this subject and know that people use both. TinyMCE seems easier, this is what I have done so far :

<script language="_javascript_" type="text/_javascript_" src=""ResourceURL1"></webobject>"></script>
<script language="_javascript_" type="text/_javascript_">
tinyMCE.init({
mode : "textareas"
});
</script>

<webobject name="editorTest"></webobject>
-------------------------------------------------------------------
ResourceURL1: WOResourceURL {
filename = "tiny_mce.js";
}

editorTest: WOText {
id = "myTextArea";
name = "myTextArea";
value = editorTestText;
cols = 70;
rows = 10;
}


It looks like it finds the .js file ok, but my textareas are still plain text.
I have included the tiny mce files under Web Resources in Xcode.

Any help would be greatly appreciated, I need to get this working and have spent some time looking around but cannot find any specific information on how to implement this.

Thanks in advance.
Paul
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

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