|
|
@ -104,13 +104,13 @@ $(document).ready(function() { |
|
|
|
|
|
|
|
|
|
|
|
// Enable CodeMirror Editor
|
|
|
|
// Enable CodeMirror Editor
|
|
|
|
$.fn.codeMirror = function() { |
|
|
|
$.fn.codeMirror = function() { |
|
|
|
|
|
|
|
if (this.length === 0) return; |
|
|
|
|
|
|
|
|
|
|
|
editor = CodeMirror.fromTextArea($(this)[0], editorOptions); |
|
|
|
editor = CodeMirror.fromTextArea($(this)[0], editorOptions); |
|
|
|
editor.setSize('100%', '500'); |
|
|
|
editor.setSize('100%', '500'); |
|
|
|
registerEditorCopy(); |
|
|
|
registerEditorCopy(); |
|
|
|
|
|
|
|
|
|
|
|
return editor; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
$('textarea#syntax-code').codeMirror().setOption('mode', 'text/x-csrc'); |
|
|
|
$('textarea#syntax-code').codeMirror(); |
|
|
|
|
|
|
|
|
|
|
|
// Enable WYSIWYG Editor
|
|
|
|
// Enable WYSIWYG Editor
|
|
|
|
$('textarea#summernote').summernote({ |
|
|
|
$('textarea#summernote').summernote({ |
|
|
|