JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.5
[ckeditor.git] / _source / plugins / link / dialogs / anchor.js
index 1e5b0ae..c99cd5d 100644 (file)
@@ -25,9 +25,10 @@ CKEDITOR.dialog.add( 'anchor', function( editor )
                minHeight : 60,\r
                onOk : function()\r
                {\r
-                       var name = this.getValueOf( 'info', 'txtName' );\r
+                       var name = CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtName' ) );\r
                        var attributes =\r
                        {\r
+                               id : name,\r
                                name : name,\r
                                'data-cke-saved-name' : name\r
                        };\r