Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 7506)
+++ /CKEditor/trunk/CHANGES.html (revision 7507)
@@ -55,4 +55,5 @@
#7745 : The list of frames on JAWS will not any more show the "ALT+0 for help" text for the editor entry.
#8979 : Overriding matches will not any more interfere on the Font size combo.
+ #5447 : Trimmed anchor name on dialog field.
Index: /CKEditor/trunk/_source/plugins/link/dialogs/anchor.js
===================================================================
--- /CKEditor/trunk/_source/plugins/link/dialogs/anchor.js (revision 7506)
+++ /CKEditor/trunk/_source/plugins/link/dialogs/anchor.js (revision 7507)
@@ -130,5 +130,5 @@
validate : function()
{
- if ( !this.getValue() )
+ if ( !this.getValue().match( /^[A-Za-z][-A-Za-z0-9_:.]+$/ ) )
{
alert( editor.lang.anchor.errorName );