JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.5
[ckeditor.git] / _source / plugins / link / dialogs / link.js
index 238113a..9cabfea 100644 (file)
@@ -503,6 +503,11 @@ CKEDITOR.dialog.add( 'link', function( editor )
                                                                                                        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