evereq/bootstrap-wysihtml5

Highlighting for Code persistance

Opened this issue · 0 comments

Highlighting of existed code may not persist if user edit HTML Source of the document. While 'code' element do persist, it seems like classes for highlight.js does not.

How to reproduce:

  • enter some text and code in the editor
  • press "highlight" button in toolbar
  • press "edit HTML" button in toolbar
  • press again "edit HTML" button to return to document input.
  • now classes used for highlight are lost and only elements persists.