Small Fixes

Get rid of 'markdown' attribute on SVG-Edit
whitelist (it's no longer needed).

Slightly smarter detection of existing SVGs.
This commit is contained in:
Jacques Distler 2010-03-06 18:28:51 -06:00
parent d33b072cba
commit ae0274783d
2 changed files with 6 additions and 5 deletions

View file

@ -136,7 +136,7 @@ function setupSVGedit(path){
selected = t.value.slice(begin, end);
after = t.value.slice(end, t.value.length);
if (selected && selected != '') {
if ( selected.match(/^<svg(.|\n)*<\/svg>$/) ) {
if ( selected.match(/^<svg(.|\n)*<\/svg>$/) && !selected.match(/<\/svg>(.|\n)/)) {
SVGeditButton.disabled = false;
SVGeditButton.value = 'Edit existing SVG graphic';
} else {