X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fdiv%2Fplugin.js;h=2f954dc1155f150917a5b95dc0d73b9c5a1196e9;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=158070fa69b6beaf691607c5c69e2fca23488c95;hpb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;p=ckeditor.git diff --git a/_source/plugins/div/plugin.js b/_source/plugins/div/plugin.js index 158070f..2f954dc 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-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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 ),