blog
This commit is contained in:
1 parent
a0acd31fcf
commit
8e05e433de
5 files changed
+7
-3
No files matched your search
@@ -28,9 +28,9 @@ tinymce.PluginManager.add('leanote_code', function(editor, url) {
|
||||
}
|
||||
if(!text) {
|
||||
text = $(node).text();
|
||||
$(node).replaceWith('<pre class="brush:' + value + '"> '+ text + "</pre>");
|
||||
$(node).replaceWith('<pre class="brush:' + value + '">'+ text + "</pre>");
|
||||
} else {
|
||||
ed.insertContent('<pre class="brush:' + value + '"> ' + text + "</pre>");
|
||||
ed.insertContent('<pre class="brush:' + value + '">' + text + "</pre>");
|
||||
}
|
||||
}
|
||||
ed.selection.moveToBookmark(everBookmark);
|
||||
|
||||
Reference in new issue
Block a user