Ticket #5278: 5278.patch
File 5278.patch, 1.6 KB (added by , 15 years ago) |
---|
-
_source/lang/en.js
169 169 emailBody : 'Message Body', 170 170 noAnchors : '(No anchors available in the document)', 171 171 noUrl : 'Please type the link URL', 172 noEmail : 'Please type the e-mail address' 172 noEmail : 'Please type the e-mail address', 173 validatePopupName : 'Please remove white space in Popup Window Name' 173 174 }, 174 175 175 176 // Anchor dialog -
_source/plugins/link/dialogs/link.js
91 91 /\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/; 92 92 var popupFeaturesRegex = /(?:^|,)([^=]+)=(\d+|yes|no)/gi; 93 93 94 var targetFrameRegex = /\s+/g; 95 94 96 var parseLink = function( editor, element ) 95 97 { 96 98 var href = element ? ( element.getAttribute( '_cke_saved_href' ) || element.getAttribute( 'href' ) ) : '', … … 776 778 if ( data.target ) 777 779 this.setValue( data.target.name ); 778 780 }, 781 validate : function( data ) 782 { 783 // Popup Window Name cannot contain white space #5278. 784 var aMatch = this.getValue().match( targetFrameRegex ); 785 if ( aMatch ) 786 alert( editor.lang.link.validatePopupName ); 787 return !aMatch; 788 }, 779 789 commit : function( data ) 780 790 { 781 791 if ( !data.target )