• 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: fckEditor - getting its content value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fckEditor - getting its content value


  • Subject: Re: fckEditor - getting its content value
  • From: Dov Rosenberg <email@hidden>
  • Date: Tue, 26 Jul 2005 22:10:48 -0400

The javascript is located under the root of the Editor. It is called
FCKeditor/fckeditor.js. This has to be called on your page prior to any of
your text areas. Each text area needs to have a unique name - that name is
used in a Javascript function to replace the plain text editor with the
javascript embellished one. See below:

First you put your text area on the page with a unique id (
WYSIWYGID30333682)

<div><textarea cols="100" rows="15" id="WYSIWYGID30333682"
name="WYSIWYGID30333682"></textarea></div>

Next you need to have the Javascript that replaces the textarea
    <SCRIPT language=JavaScript type="text/javascript">
var myFckEditor = new FCKeditor( 'WYSIWYGID30333682' ) ;
 ...
 ...

myFckEditor.ReplaceTextarea() ;

...
</SCRIPT>

When the form is submitted (your stuff needs to be in a form), the text area
works like a normal text area i.e. Your bindings just work.

You shouldn't need to do anything more to get it to work.


On 7/26/05 9:29 PM, "Jonathan Fleming" <email@hidden> wrote:

>
>
>> From: Dov Rosenberg <email@hidden>
>> To: Jonathan Fleming <email@hidden>,WebObjects Dev
>> <email@hidden>
>> Subject: Re: fckEditor - getting its content value
>> Date: Tue, 26 Jul 2005 20:35:40 -0400
>>
>> We use FCK editor with WO without any problems. To WebObjects the FCK
>> editor
>> looks like a text area that is bound to a variable. They provide some
>> Javascripts that need to get called out to turn the text area into the FCK
>> Editor.
>
> This is where I am failing I believe... what is the javascript that's called
> to get the value?
> can you post that function() please?
> I've been searching for weeks on how to either save the updated content to a
> copy area (hidden field) on save or simply how to save the content to into
> the URL so I can get it from a request.
> I'm not that up on javascript, but I cope.
>
> everything else is OK eg. my set up is as below and i can edit the content I
> just can not save it or get at it to save it
>
>
> var oFCKeditor = new FCKeditor( 'id_280' ) ;
> oFCKeditor.BasePath = "/WebObjects/siteEditorFCK/" ;
> oFCKeditor.CheckBrowser = true ;
> oFCKeditor.DisplayErrors = false ;
> oFCKeditor.Width = "700" ;
> oFCKeditor.Height = "400" ;
> oFCKeditor.ToolbarSet = "Standard" ;
> oFCKeditor.instanceName = "id_280" ;
> oFCKeditor.Config['CustomConfigurationsPath'] =
> '/WebObjects/xhtmlEditorFCK/fckconfig_ukchp.js'  ;
> oFCKeditor.Config[ "AutoDetectLanguage" ] = false ;
> oFCKeditor.Config[ "DefaultLanguage" ] = "pt-BR" ;
> oFCKeditor.Value = "My initial content goes here, but i can not get it back
> out..." ;
> oFCKeditor.Create() ;
>
>>
>> HTH
>>
>>
>> --
>> Dov Rosenberg
>> Conviveon/Inquira
>> Knowledge Management Experts
>> http://www.conviveon.com
>> http://www.inquira.com
>>
>>
>>
>
>



 _______________________________________________
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: 
 >Re: fckEditor - getting its content value (From: "Jonathan Fleming" <email@hidden>)

  • Prev by Date: Re: fckEditor - getting its content value
  • Next by Date: Fetch Spec Misunderstanding
  • Previous by thread: Re: fckEditor - getting its content value
  • Next by thread: Re: fckEditor - getting its content value
  • Index(es):
    • Date
    • Thread