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
This commit is contained in:
@@ -11141,6 +11141,7 @@ function disableAdvancedTextEdit() {
|
|||||||
|
|
||||||
var text = document.createElementNS(svgns,'text');
|
var text = document.createElementNS(svgns,'text');
|
||||||
text.textContent = 'a';
|
text.textContent = 'a';
|
||||||
|
svgcontent.appendChild(text);
|
||||||
|
|
||||||
// text character positioning
|
// text character positioning
|
||||||
try {
|
try {
|
||||||
@@ -11148,9 +11149,9 @@ function disableAdvancedTextEdit() {
|
|||||||
support.textCharPos = true;
|
support.textCharPos = true;
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
support.textCharPos = false;
|
support.textCharPos = false;
|
||||||
|
|
||||||
disableAdvancedTextEdit();
|
disableAdvancedTextEdit();
|
||||||
}
|
}
|
||||||
|
svgcontent.removeChild(text);
|
||||||
|
|
||||||
// TODO: Find better way to check support for this
|
// TODO: Find better way to check support for this
|
||||||
support.editableText = isOpera;
|
support.editableText = isOpera;
|
||||||
|
|||||||
Reference in New Issue
Block a user