Commit 35cbcfa4 authored by Henrik Danielsson's avatar Henrik Danielsson
Browse files

- #2466297 by Elijah Lynn, TwoD: Fixed support for CKEditor Widget initialization.

parent 8e7d45dc
Loading
Loading
Loading
Loading
+1 −1
Changes for editors/js/ckeditor-3.0.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ Drupal.wysiwyg.editor.instance.ckeditor = {

  insert: function(content) {
    content = this.prepareContent(content);
    if (CKEDITOR.env.webkit || CKEDITOR.env.chrome || CKEDITOR.env.opera || CKEDITOR.env.safari) {
    if (CKEDITOR.version.split('.')[0] === '3' && (CKEDITOR.env.webkit || CKEDITOR.env.chrome || CKEDITOR.env.opera || CKEDITOR.env.safari)) {
      // Works around a WebKit bug which removes wrapper elements.
      // @see https://drupal.org/node/1927968
      var tmp = new CKEDITOR.dom.element('div'), children, skip = 0, item;