X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fdiv%2Fplugin.js;h=f19efc08b9a4fb41309e3de6403fb97ea01f630e;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=158070fa69b6beaf691607c5c69e2fca23488c95;hpb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;p=ckeditor.git diff --git a/_source/plugins/div/plugin.js b/_source/plugins/div/plugin.js index 158070f..f19efc0 100644 --- a/_source/plugins/div/plugin.js +++ b/_source/plugins/div/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -12,7 +12,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { CKEDITOR.plugins.add( 'div', { - requires : [ 'editingblock', 'domiterator', 'styles' ], + requires : [ 'editingblock', 'dialog', 'domiterator', 'styles' ], init : function( editor ) { @@ -37,10 +37,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license blockLimit = path.blockLimit, div = blockLimit.is( 'div' ) && blockLimit; - if ( div && !div.getAttribute( '_cke_div_added' ) ) + if ( div && !div.data( 'cke-div-added' ) ) { toRemove.push( div ); - div.setAttribute( '_cke_div_added' ); + div.data( 'cke-div-added' ); } } @@ -95,7 +95,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { editor.contextMenu.addListener( function( element, selection ) { - if ( !element || element.isReadOnly()) + if ( !element || element.isReadOnly() ) return null; var elementPath = new CKEDITOR.dom.elementPath( element ),