I'm just about to switch my CMS from using DevEdit over to FCKEditor...
I'm working over all the code, and I amy trying to update the system to display my source code in an IFRAME rather than the plain textarea.
my main problem is I'm not too experienced with javascripting on the level that this package was created...
I've edited the html on the fckeditor.html, and added a new file that's almost the same as fckeditorarea.html...
now, I need to be able to update the sections that are document.gettElementbyID("Source").value to something that will work in the IFRAME...
Any help would be greatly appreciated...
my purpose for this is to add a feature rich syntax highlighter...
Also, as a new FCKEditor user, the documentation included with the distribution seems kind of incomplete... are there any other resources out there?
I'm working over all the code, and I amy trying to update the system to display my source code in an IFRAME rather than the plain textarea.
my main problem is I'm not too experienced with javascripting on the level that this package was created...
I've edited the html on the fckeditor.html, and added a new file that's almost the same as fckeditorarea.html...
now, I need to be able to update the sections that are document.gettElementbyID("Source").value to something that will work in the IFRAME...
Any help would be greatly appreciated...
my purpose for this is to add a feature rich syntax highlighter...
Also, as a new FCKEditor user, the documentation included with the distribution seems kind of incomplete... are there any other resources out there?
RE: Changing Source Mode to IFRAME
Not sure exactly what you want to achieve, but try grabbing my iframe demo 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.