X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Flink%2Fdialogs%2Fanchor.js;h=2611c8c5e93d2b17d90c5df8900c229c6fcba458;hb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;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..2611c8c 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-2013, 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 };