Andrew Stacey says I can't count ...

This commit is contained in:
Jacques Distler 2010-02-17 07:29:15 -06:00
parent ce47d49e69
commit db5b418659

View file

@ -117,7 +117,7 @@ function setupSVGedit(path){
// finally, slice up the textarea content into before, selected, & after pieces
before = t.value.slice(0, begin);
selected = t.value.slice(begin, end);
after = t.value.slice(end, t.value.length-1);
after = t.value.slice(end, t.value.length);
if (selected && selected != '') {
if ( selected.match(/^<svg(.|\n)*<\/svg>$/) ) {
SVGeditButton.disabled = false;