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...
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...