I have a few different forms where I want to load FCK for more than one textbox. This works, but it takes a while to load as it loads in all the graphics and .js stuff for each box. Is there some quick and easy way to get it to maybe load the .js stuff once and reuse it for each box? I don't recall it doing this with Beta 2, just the new RC 1. I could probably figure it out myself, but thought I'd see if someone's already done it and can save me the time. Thanks!
Mon, 12/13/2004 - 13:47
#1
RE: 2.0 RC1 Multiple instances on one page
Since the iframe content's don't load when the page loads (unless I choose to), the rest of the page is very quick!
Chances are if you have multiple areas, people arent using all of them every time they load the page. Perhaps autoload the most important one, and show/hide the others.
RE: 2.0 RC1 Multiple instances on one page
(Sorry for my English, it's not my birth's language)
Hello,
Could you share your code to load fckeditor inside an iframe. I'm interested to use your solution, but i know nothing about iframe
thanks
RE: 2.0 RC1 Multiple instances on one page
Sure no problem.
Grab my demo from here
http://www.noblet.com.au/_download/fck_iframe_demo.zip
Put it in the root of a web site that has a stock /fckeditor folder and open /fck_iframe_demo.htm
You can see how the parent page is creating two iframes which can be shown or hidden by clicking on the show/hide buttons. They can even be grown or shrunk by clicking on the bigger/smaller buttons. (I plan to make this an incremental increase/decrease rather that two fixed sizes)
The frame itself contains a standard fckeditor object, and a function to let the parent grab the content when the form is submitted.
Obviously there are a few issues such as initial population of the content (in my solution I will pass an ID to the iframe page and grab it from a database)
Also, in this solution if the editor is current hidden, no content is returned for it. There are obvious ways to work around that.
Good luck
Ben
RE: 2.0 RC1 Multiple instances on one page
I'll try to use this in my code.
RE: 2.0 RC1 Multiple instances on one page
Thanks,
Doug