X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Flink%2Fdialogs%2Fanchor.js;h=c99cd5dfc7f85db3aba958ebc5f932520c1b10b8;hb=fb481ba0a7d298e3e7b9034fcb9f2afdc6e8e796;hp=1fbcc2afe7c12feb9375a08abf527e7ab8c31a7c;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba;p=ckeditor.git diff --git a/_source/plugins/link/dialogs/anchor.js b/_source/plugins/link/dialogs/anchor.js index 1fbcc2a..c99cd5d 100644 --- a/_source/plugins/link/dialogs/anchor.js +++ b/_source/plugins/link/dialogs/anchor.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 */ @@ -25,9 +25,10 @@ CKEDITOR.dialog.add( 'anchor', function( editor ) minHeight : 60, onOk : function() { - var name = this.getValueOf( 'info', 'txtName' ); + var name = CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtName' ) ); var attributes = { + id : name, name : name, 'data-cke-saved-name' : name };