Hi everyone, I've been writing a plugin to encrypt and decrypt strings in Drupal, and when the button is output onto the page, it breaks.
Here is what it looks like on my local test site:
But when I put it into production on my other site:
The themes for CKEditor are different, but they hould be running the most recent version as I've run the updater (and Drupal is up to date too). The text looks as if it's ouputting CKEditor's own HTML (for the button), along with some from the interface.js file.
I have no idea what is going on, but for some reason my code might be delimiting the output and causing CKEditor to spew out the code.
Code
interface.js - This is put onto every page for CKEditor's use
CODE REMOVED
plugin.js - This is the CKEditor plugin file
CODE REMOVED
Could you please help me work out what is going on? I'm so confused!
Thanks,
Tosh :)
UPDATE: Problem sorted. I had the jQuery Update module enabled on Drupal, and it was using version 1.8. CKEditor uses a function which was removed in 1.8 causing it to break. I removed the code as I want to keep it private.
Tosh.