X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FTinyMCE%2Fjs%2Fthemes%2Fadvanced%2Fjs%2Fanchor.js;h=e528e4f42f78a571657b6abe88f429a1d57400dd;hb=d67b8fdae83d948bf997a7f7cdbb71b52d9481e9;hp=7fe7810558e74edefb59a63da1c14cfc9689b139;hpb=0ed9000fd34497644829a4d0ef700bdea519771f;p=quix0rs-gnu-social.git diff --git a/plugins/TinyMCE/js/themes/advanced/js/anchor.js b/plugins/TinyMCE/js/themes/advanced/js/anchor.js index 7fe7810558..e528e4f42f 100644 --- a/plugins/TinyMCE/js/themes/advanced/js/anchor.js +++ b/plugins/TinyMCE/js/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')