Fixed bug where textedit mode was being disabled in other browsers

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1723 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-09-16 16:24:28 +00:00
parent dea7b5c896
commit 4d817ef39c
1 changed files with 2 additions and 1 deletions

View File

@ -11141,6 +11141,7 @@ function disableAdvancedTextEdit() {
var text = document.createElementNS(svgns,'text');
text.textContent = 'a';
svgcontent.appendChild(text);
// text character positioning
try {
@ -11148,9 +11149,9 @@ function disableAdvancedTextEdit() {
support.textCharPos = true;
} catch(err) {
support.textCharPos = false;
disableAdvancedTextEdit();
}
svgcontent.removeChild(text);
// TODO: Find better way to check support for this
support.editableText = isOpera;