Permalink
Browse files

Merge pull request #878 from darkwing/ckeditor-cdn-843078

fix bug 843078 - Update build timestampfor CKEditor
  • Loading branch information...
lmorchard committed Feb 20, 2013
2 parents 264bd8d + d7215ff commit 5450f78caece110086ef932acd92e915b87b59cb
Showing with 5 additions and 1 deletion.
  1. +5 −1 apps/wiki/templates/wiki/ckeditor_config.js
@@ -25,7 +25,10 @@ CKEDITOR.on('instanceReady', function (ev) {
var tbody = ev.editor._.cke_contents.$.parentNode.parentNode,
pathP = tbody.lastChild.childNodes[0].childNodes[1],
toolbox = tbody.childNodes[0].childNodes[0].childNodes[0];
- toolbox.appendChild(pathP);
+
+ if(toolbox && pathP) {
+ toolbox.appendChild(pathP);
+ }
});
// Any utilities we need to be globably available will go here
@@ -86,6 +89,7 @@ CKEDITOR.mdn = {};
block('controlShiftO');
})();
+CKEDITOR.timestamp = '{{ BUILD_ID_JS }}';
CKEDITOR.editorConfig = function(config) {
config.extraPlugins = 'autogrow,definitionlist,mdn-buttons,mdn-link,mdn-syntaxhighlighter,mdn-keystrokes,mdn-attachments,mdn-image,mdn-enterkey,mdn-wrapstyle,mdn-table,tablesort,mdn-sampler,mdn-sample-finder,mdn-maximize';

0 comments on commit 5450f78

Please sign in to comment.