projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade TinyMCE to v3.4.5
[citadel.git]
/
webcit
/
tiny_mce
/
themes
/
advanced
/
js
/
anchor.js
diff --git
a/webcit/tiny_mce/themes/advanced/js/anchor.js
b/webcit/tiny_mce/themes/advanced/js/anchor.js
index 7fe7810558e74edefb59a63da1c14cfc9689b139..e528e4f42f78a571657b6abe88f429a1d57400dd 100644
(file)
--- a/
webcit/tiny_mce/themes/advanced/js/anchor.js
+++ b/
webcit/tiny_mce/themes/advanced/js/anchor.js
@@
-19,6
+19,11
@@
var AnchorDialog = {
update : function() {
\r
var ed = this.editor, elm, name = document.forms[0].anchorName.value;
\r
\r
update : function() {
\r
var ed = this.editor, elm, name = document.forms[0].anchorName.value;
\r
\r
+ if (!name || !/^[a-z][a-z0-9\-\_:\.]*$/i.test(name)) {
\r
+ tinyMCEPopup.alert('advanced_dlg.anchor_invalid');
\r
+ return;
\r
+ }
\r
+
\r
tinyMCEPopup.restoreSelection();
\r
\r
if (this.action != 'update')
\r
tinyMCEPopup.restoreSelection();
\r
\r
if (this.action != 'update')
\r