From 4d817ef39c6f39ac072bee155736bb443978d49a Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Thu, 16 Sep 2010 16:24:28 +0000 Subject: [PATCH] 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 --- editor/svgcanvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 1aeeeb80..1b2e014c 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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;