drisate Posted July 13, 2009 Share Posted July 13, 2009 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. Quote Link to comment Share on other sites More sharing options...
JonnoTheDev Posted July 13, 2009 Share Posted July 13, 2009 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) ; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.