I need to set/config CKEditor to stop automatically editing/changing the code when I submit the form.
We have an "onSubmit" event that triggers a function that replaces the "<link " tag with another string (reason can be explained later, but this function needs to keep being triggered).
The issue: CKEditor adds code that messes up the content after this replace function occurs.
I need to prevent CKEditor to perform any kind of change when the submit is triggered.
The issue only happens when the funtion that does the replace is called (because it replaces the <link tag), and only in editor mode (not in view code mode).
If the function isn´t called (and the replace doesn´t happen), thigns go well. But I need the replace to take place.
There is a live page here: [login to view URL]
The files of this live page is also provided on this project.