Jump to content

$oFCKeditor = new FCKeditor('texte[]') ;


drisate

Recommended Posts

Hey guys i need to use the FCK WYSIWYG posted as an array because the description field is autogenerated (if needed) by the user a number infit of times. The forme works greate but because of the way FCK was build, i am having a hard time making it possible. Has anybody used it before?

 

FCK WYSIWYG

 

$oFCKeditor = new FCKeditor('texte[]') ;

 

Adding [] in teh name field causes a few problems in the way the HTML is generated.

 

WORKS: id="texte[]"

WORKS: name="texte[]"

FAIL: id="texte[]___Config"

FAIL: id="texte[]___Frame"

FAIL: src="editor/fckeditor.html?InstanceName=texte[]&Toolbar=Basic"

 

How can i work arround those fails?

I tryed posting this question on there board but no support.

Link to comment
Share on other sites

You cannot use arrays in a url

src="editor/fckeditor.html?InstanceName=texte[]&Toolbar=Basic"

 

Rather than an array why not use a counter to identify each instance

$numItems = 4;
// produce editors text1,text2,text3,text4
for($x = 1; $x <= $numItems; $x++) {
  $oFCKeditor = new FCKeditor('text'.$x) ;
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.