JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.6.1
[ckeditor.git] / _source / plugins / horizontalrule / plugin.js
index a5d1edd..618ebaa 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -14,7 +14,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                canUndo : false,    // The undo snapshot will be handled by 'insertElement'.\r
                exec : function( editor )\r
                {\r
-                       editor.insertElement( editor.document.createElement( 'hr' ) );\r
+                       var hr = editor.document.createElement( 'hr' );\r
+                       editor.insertElement( hr );\r
                }\r
        };\r
 \r