Hi all,

I want to write a Javascript function that grabs text from a CKEditor text area, modifies it, and then sends it back into the text area. Where do I insert the code for that function? Somewhere in the CKEditor or a new module?

Danny

Comments

mitchmac’s picture

I'm sure there are a million different ways you could accomplish what you seek to do, this is what I would do though:

The only potential issue I would possibly expect to see with this approach would be if the CKEditor interacts weirdly with the DOM... just a small chance.