From b40ac3caebfc5bdbc1357ba1fe6144bf2348c5fd Mon Sep 17 00:00:00 2001 From: w8tcha Date: Sun, 4 Mar 2018 11:37:41 +0100 Subject: [PATCH] Fixed #136 --- Gruntfile.js | 4 +--- codemirror/plugin.js | 10 +++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index bcde2fb2..f4cb8eb2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -279,15 +279,13 @@ module.exports = function(grunt) { 'requirejs', 'min', 'cssmin', - 'imagemin', 'watch' ]); grunt.registerTask('default', [ 'requirejs', 'min', - 'cssmin', - 'imagemin' + 'cssmin' ]); }; diff --git a/codemirror/plugin.js b/codemirror/plugin.js index b33a52e7..d26e3c33 100644 --- a/codemirror/plugin.js +++ b/codemirror/plugin.js @@ -10,7 +10,7 @@ CKEDITOR.plugins.add('codemirror', { icons: 'searchcode,autoformat,commentselectedrange,uncommentselectedrange,autocomplete', // %REMOVE_LINE_CORE% lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,ug,uk,vi,zh-cn,zh', // %REMOVE_LINE_CORE% - version: '1.17.4', + version: '1.17.5', init: function (editor) { var rootPath = this.path, defaultConfig = { @@ -66,7 +66,7 @@ packages: [{ name: 'codemirror', location: location, - main: 'codemirror.min.js' + main: 'codemirror.js' }, { name: 'codemirror-mode-twig', location: location, @@ -109,7 +109,7 @@ map: { '*': { //all the requires pointing to ../../lib/codemirror from addons will be redirected to module named codemirror.js - //which is located in bundle 'codemirror' whose js file is codemirror.min.js + //which is located in bundle 'codemirror' whose js file is codemirror.js 'lib/codemirror': 'codemirror.js' } } @@ -301,7 +301,7 @@ } else { if (typeof (CodeMirror) == 'undefined') { - CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', + CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.js', function() { CKEDITOR.scriptLoader.load(getCodeMirrorScripts(), @@ -661,7 +661,7 @@ } else { if (typeof (CodeMirror) == 'undefined') { - CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.min.js', + CKEDITOR.scriptLoader.load(rootPath + 'js/codemirror.js', function() { CKEDITOR.scriptLoader.load(getCodeMirrorScripts(),