X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Flink%2Fdialogs%2Fanchor.js;h=2611c8c5e93d2b17d90c5df8900c229c6fcba458;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=1e5b0ae06b7377012ebdb3cb036e533bf70449d2;hpb=2f22c0c38f17e75be5541089076885442aaa2377;p=ckeditor.git diff --git a/_source/plugins/link/dialogs/anchor.js b/_source/plugins/link/dialogs/anchor.js index 1e5b0ae..2611c8c 100644 --- a/_source/plugins/link/dialogs/anchor.js +++ b/_source/plugins/link/dialogs/anchor.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2012, 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 };