diff options
author | thomascube <thomas@roundcube.net> | 2011-04-20 19:11:10 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-04-20 19:11:10 +0000 |
commit | a9251be2f09fb5f18a85d201c67668c70980efe3 (patch) | |
tree | 59d8e5e6de86e4bcde237f2b5793eccb98a7ca87 /program/js/tiny_mce/themes/advanced/js/anchor.js | |
parent | 164b45964edc699db9e049dddd91e9de07635fcd (diff) |
Update to TinyMCE 3.4.2 to fix errors in IE9v0.5.2@4679
Diffstat (limited to 'program/js/tiny_mce/themes/advanced/js/anchor.js')
-rw-r--r-- | program/js/tiny_mce/themes/advanced/js/anchor.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/js/tiny_mce/themes/advanced/js/anchor.js b/program/js/tiny_mce/themes/advanced/js/anchor.js index 7fe781055..e528e4f42 100644 --- a/program/js/tiny_mce/themes/advanced/js/anchor.js +++ b/program/js/tiny_mce/themes/advanced/js/anchor.js @@ -19,6 +19,11 @@ var AnchorDialog = { update : function() {
var ed = this.editor, elm, name = document.forms[0].anchorName.value;
+ if (!name || !/^[a-z][a-z0-9\-\_:\.]*$/i.test(name)) {
+ tinyMCEPopup.alert('advanced_dlg.anchor_invalid');
+ return;
+ }
+
tinyMCEPopup.restoreSelection();
if (this.action != 'update')
|