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:
parent
d33b072cba
commit
ae0274783d
2 changed files with 6 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue