Don't use a data-url
Pass the SVG to the editor, using editor.svgCanvas.setSvgString(selected); instead. (Suggested by Jeff Schiller) Fix a bug with line and freehand tools caused by activating foreignObject tool. (Again, fix due to Jeff) Sync with SVG-Edit.
This commit is contained in:
parent
e744a697c2
commit
52d85c6d01
5 changed files with 110 additions and 77 deletions
|
@ -624,7 +624,8 @@ function svg_edit_setup() {
|
|||
|
||||
// updates the toolbar (colors, opacity, etc) based on the selected element
|
||||
var updateToolbar = function() {
|
||||
if (selectedElement != null &&
|
||||
if (selectedElement != null &&
|
||||
selectedElement.tagName != "foreignObject" &&
|
||||
selectedElement.tagName != "image" &&
|
||||
selectedElement.tagName != "g")
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue