ckeditor remove CSS

When using ckeditor for multipal places in your page. You want to add the elements styling to ckeditor. You can add the css with ckeditor nice built in function but they don't have a function to remove it the when you are done editing one area and moving to another.

The fix:

CKEditor has a style array under the "_" object. To remove the style that you add just pop the end off the array.

This might be a hack job but it gets the job done.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.