X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fplugins%2Fhorizontalrule%2Fplugin.js;h=bdf94531af42effcefd1327ba6c4568544bfb09a;hb=6e682412d5cc0dfaedb376482e585bf2989c6863;hp=d4ec65a6eb40a06aa7e7f717652d5232357ba805;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git diff --git a/_source/plugins/horizontalrule/plugin.js b/_source/plugins/horizontalrule/plugin.js index d4ec65a..bdf9453 100644 --- a/_source/plugins/horizontalrule/plugin.js +++ b/_source/plugins/horizontalrule/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -14,7 +14,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license canUndo : false, // The undo snapshot will be handled by 'insertElement'. exec : function( editor ) { - editor.insertElement( editor.document.createElement( 'hr' ) ); + var hr = editor.document.createElement( 'hr' ); + editor.insertElement( hr ); } };