diff --git a/.gitignore b/.gitignore index 4673d8f..5d18378 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ *.sublime-workspace *.sublime-project + +.idea/ \ No newline at end of file diff --git a/dialogs/pbckcode.js b/dialogs/pbckcode.js index 15871c8..7fe485b 100755 --- a/dialogs/pbckcode.js +++ b/dialogs/pbckcode.js @@ -11,10 +11,10 @@ CKEDITOR.dialog.add('pbckcodeDialog', function (editor) { var DEFAULT_SETTINGS = { cls : '', modes : [ - ['HTML', 'html'], - ['CSS', 'css'], - ['PHP', 'php'], - ['JS', 'javascript'] + ['HTML', 'html'], + ['CSS', 'css'], + ['PHP', 'php'], + ['JS', 'javascript'] ], theme : 'textmate', tab_size : 4 @@ -25,8 +25,8 @@ CKEDITOR.dialog.add('pbckcodeDialog', function (editor) { // merge user settings with default settings var settings = CKEDITOR.tools.extend(DEFAULT_SETTINGS, editor.config.pbckcode, true); - // CKEditor variables - var dialog; + // CKEditor variables + var dialog; var shighlighter = new PBSyntaxHighlighter(settings.highlighter); // ACE variables @@ -92,25 +92,26 @@ CKEDITOR.dialog.add('pbckcodeDialog', function (editor) { ] }, { - type : 'html', - html : '
', - id : 'code-textarea', + type : 'html', + html : '', + id : 'code-textarea', className : 'cke_pbckcode_ace', - style : 'position: absolute; top: 80px; left: 10px; right: 10px; bottom: 50px;', - setup : function (element) { + style : 'position: absolute; top: 80px; left: 10px; right: 10px; bottom: 50px;', + setup : function (element) { // get the value of the editor var code = element.getHtml(); // replace some regexp - code = code.replace(new RegExp('