Hi all,
I’m a Newbie to CKEditor but not to JS and programming in general. (Old dog actually)
Here’s a little subtle little tip for those like me who have wasted dozens of unpaid hours trying to figure out how to apply this editor, before you throw your hands in the air and rip it out and go the TinyMCE line. (I was that close)
Web browsers process code from the TOP down! When the CKEditor Replace code is found the HTML for the thing you’re trying to replace must have been already defined!
In other words, the HTML in you code has to be processed FIRST and the CKEditor replace code SECOND.. Otherwise the replace has nothing to replace, it’s not defined yet.
Put the CKEditor code at the bottom of your file
Good luck… I’ll never use this editor again… Yay!!
Where is the problem?
I don't see your point.
Give an example.
Lots of people are having
Lots of people are having trouble getting this editor to work correctly, in many different ways.
If the HTML area hasn't been processed by the webbrowser then the CKEditor can't find what it needs to replace..
The target HTML area has to exist in memory before it can be replaces.
Still don't see what you
I store the areas to edit in MySQL, and no problem - if any problems it has not to do with CKEditor.
It's more to do with how
It's more to do with how browsers process the code, what I ma saying is the the Target text area has to be defined and created by the browser before the browser tries to replace it with the editor.
lots of people are having problems getting this editor to work, if yours work first shot then you're one of the lucky ones.
yes so true and after a lot!
yes so true and after a lot! of hours trying to find a way to get this to work.
Seems I am not one of the lucky ones ;-)
Thanks for thos ecomments,
Thanks for thos ecomments,
after wasitng 40+ unpaid hours (I love straving) I thought I finally got it working only to discover that it wont save the formatting (Bold,Italics etc) to the database.
TinyMCE here I come..
content filter
Have you read about the Advanced Content Filter ?
http://ckeditor.com/demo#acf
Are you sure you save to the database with the necessary code to maintain HTML?
I my case, depending on the field I save, I either keep the HTML, or strip it off for plain text. It is not CKEditor making that decision...