Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.6.6
[ckeditor.git]
/
_source
/
plugins
/
link
/
dialogs
/
link.js
diff --git
a/_source/plugins/link/dialogs/link.js
b/_source/plugins/link/dialogs/link.js
index
238113a
..
118d1b0
100644
(file)
--- a/
_source/plugins/link/dialogs/link.js
+++ b/
_source/plugins/link/dialogs/link.js
@@
-1,5
+1,5
@@
/*
\r
/*
\r
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
@@
-503,6
+503,11
@@
CKEDITOR.dialog.add( 'link', function( editor )
dialog.getValueOf( 'info', 'linkType' ) != 'url' )
\r
return true;
\r
\r
dialog.getValueOf( 'info', 'linkType' ) != 'url' )
\r
return true;
\r
\r
+ if ( (/javascript\:/).test( this.getValue() ) ) {
\r
+ alert( commonLang.invalidValue );
\r
+ return false;
\r
+ }
\r
+
\r
if ( this.getDialog().fakeObj ) // Edit Anchor.
\r
return true;
\r
\r
if ( this.getDialog().fakeObj ) // Edit Anchor.
\r
return true;
\r
\r