i use FCKEditor with MediaWiki (through the MediaWiki TurnKey Linux on VirtualBox).
i want to write some javascript code that follows changes to the document/wiki source.
i followed this guide to get a basic plugin working:
http://docs.cksource.com/FCKeditor_2.x/ ... n/Plug-ins
my plugin loads, and shows a button, and alert() pop-ups if i place some in the fckplugin.js.
i do not need a button though, but would like to be able to register custom JS functions to be triggered on events, as described here:
http://docs.cksource.com/FCKeditor_2.x/ ... API#Events
i guess the events interesting for me would be OnAfterSetHTML & OnPaste, but i can't manage the get them.
if i place the FCKeditor_OnComplete functions in my fckplugin.js, it is never called, and i was neither able to fetch the editor instance manually with:
var oEditor = FCKeditorAPI.GetInstance('wpTextbox1');
(an alert after this statement is never executed)
It looked to me, that doing this stuff would be nicer and simpler in CKEditor 3, but it seems to not being used for wiki editing yet, and i don't feel like pioneering that.
Any suggestions for what i do wrong?
(btw, i was absent from web-development for almost 10 years, so please forgive naiveness )