I thought it used a textarea form element, not an iframe...
I could be wrong though.
In any case, a div would be cool, because then it could auto-expand as the content in it grew (no scrollbars!), but I imagion this wouldnt be simple change to implement.
If I'm correct the editor does replace a textarea form element, but the editable field inside the editor is within an iframe. The editor generates all the HTML it needs (including the iframe) using JavaScript. But the fact that it puts the editable area inside an iframe also makes the content of the editable field completely independent from the rest of a web page (which it is used in). Which then again means that CSS used in a web page (in which the editor is used) is not able to affect the content inside the editor.
However, if the editor would be able to put the contents of the editable field inside a div instead of an iframe, any CSS used in a web page where the editor is used would affect the content of the editor's editable field. And this would be a really good thing as it would make it really really convenient to just the drop the code for the editor anywhere into any web page. The editor's editable field would simply automatically inherit the CSS used for the web page, like any other div (or other) element would.
I guess it would also make it able to grow as the div grows too.
I know this is possible as I've tested it myself using the HTMLArea editor. But this editor would only use a div (if so setup) when used in Internet Explorer. When used in a Gecko browser it fell back to an iframe.
RE: Could the editor use div instead of ifram
I could be wrong though.
In any case, a div would be cool, because then it could auto-expand as the content in it grew (no scrollbars!), but I imagion this wouldnt be simple change to implement.
RE: Could the editor use div instead of ifram
However, if the editor would be able to put the contents of the editable field inside a div instead of an iframe, any CSS used in a web page where the editor is used would affect the content of the editor's editable field. And this would be a really good thing as it would make it really really convenient to just the drop the code for the editor anywhere into any web page. The editor's editable field would simply automatically inherit the CSS used for the web page, like any other div (or other) element would.
I guess it would also make it able to grow as the div grows too.
I know this is possible as I've tested it myself using the HTMLArea editor. But this editor would only use a div (if so setup) when used in Internet Explorer. When used in a Gecko browser it fell back to an iframe.
RE: Could the editor use div instead of ifram
RE: Could the editor use div instead of ifram
like @import "yoursite.css"; in the relevant stylesheet so that all your site styles override the FCK.
RE: Could the editor use div instead of iframe?
RE: Could the editor use div instead of ifram