Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does GS overwrite the changes in pages?
#1
Good afternoon!

I think my problem is quite stupid, but I didn't know how to search for an answer... Blush

I just added a dropdown-Button to a page in the html-mode of the CKEditor. So far everything works, but then I tried to add <span class="caret"></span> to that button. This also works, but when I open the page again and edit it in html-view again, the span-code just dissappeared and seems to have been overwritten somehow. How is that possible? Big Grin Can I change that?

Thanks for the help!
Reply
#2
ckeditor removes empty elements

In ckeditor config.js
// prevent removal of empty inline tags
// CKEDITOR.dtd.$removeEmpty['i'] = false;
// CKEDITOR.dtd.$removeEmpty['span'] = false;


or stick a &nbsp; in it
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
(2015-05-07, 23:47:41)shawn_a Wrote: ckeditor removes empty elements

In ckeditor config.js
// prevent removal of empty inline tags
// CKEDITOR.dtd.$removeEmpty['i'] = false;
// CKEDITOR.dtd.$removeEmpty['span'] = false;


or stick a &nbsp; in it


Thanks a lot! 
Reply
#4
of course comment those out first

Code:
// prevent removal of empty inline tags
CKEDITOR.dtd.$removeEmpty['i'] = false;
CKEDITOR.dtd.$removeEmpty['span'] = false;
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)