ace editor, markdown editor

This commit is contained in:
life committed 2015-01-08 00:36:28 +08:00
1 parent be01c9c3f7
commit 2cfc89ca5f
1233 files changed
+24568 -10275

No files matched your search

@@ -119,6 +119,7 @@ function start()
// Set CodeMirror cursor to same position as cursor was in TinyMCE:
var html = editor.getContent({source_view: true});
// var html = editor.getBody().innerHTML; // life
html = html.replace(/<span\s+class="CmCaReT"([^>]*)>([^<]*)<\/span>/gm, String.fromCharCode(chr));
editor.dom.remove(editor.dom.select('.CmCaReT'));