I figured how to make the editor scale vertically while typing or pasting (my previous post: https://sourceforge.net/forum/forum.php ... _id=379487 ).
I found it the best idea to make my function respond to each SelectionChange event. I found FCK.AttachToOnSelectionChange. It seems to work perfectly on Gecko, however IE apparently doesnt care about it. Gecko allows even for stacking actions when attached via this method, which is great. But what can i do with IE. Anybody??
thx
jacek
Thu, 03/17/2005 - 15:08
#1
RE: FCK.AttachToOnSelectionChange()
You can do something like this in the page containing the fckeditor instance:
<script language="javascript">
function chngSz(daElementID) {
wee = document.getElementById(daElementID); wee.height = wee.height - 25;
}
</script>
And then use something like this:
fckEditor.value = '<div onClick=parent.parent.chngSz("textEditor___Frame");>Yayfunfunfun</div>';
Basically you wrap the content in a div that does the onclick, keydown/whatever. Instance name here is "textEditor". Very cheese but it might work in a pinch, depending on setup.You'd have to remove the div tag when you save the data tho. Eh. Just a workaround...