Text enhancements #806
Replies: 8 comments
-
Good points. @tdittmann just added some additional text attributes to svgedit. |
Beta Was this translation helpful? Give feedback.
-
One eternity later: i added some attributes with #704, do you miss something else? |
Beta Was this translation helpful? Give feedback.
-
No, just had a look to your code and it's great. Did you find out why the test are not passing? I don't know if it is a configuration issue or a bug in Cypress but I noticed a difference in the snapshot when I run the text interactively with Cypress UI or when I just npm run test. |
Beta Was this translation helpful? Give feedback.
-
I just had some formatting issues, now it works :) Or it is just merged, thank you 👍 |
Beta Was this translation helpful? Give feedback.
-
Along these same lines, I'm trying to get HTML documents embedded into SVGs. Right now I'm adding the functionality as an extension. When the tool is used, it inserts a
I figure that Squire (https://github.com/neilj/Squire), which is a library that provides functions for editing HTML, can be utilized under the hood to give HTML editing functionality. UI elements for calling the edit functions could be placed in the context sensitive toolbar at the top. It still requires some more work. |
Beta Was this translation helpful? Give feedback.
-
I've got a rough prototype going for this idea on this fork. The goal is to embed HTML elements into SVGs using svg-edit and use Squire to edit them. A major issue I've run into is trying to distribute input events. There is some code that gives the focus to the Squire editor (a Any advice or help from someone with more familiarity with the code base would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hello, In order to do this, you need to declare the extensions then in the callback() of the extension, you need to listen to "svgedit" events.
The function svgEditEvent can be something like below (you need to pick the relevant events for your extensions)
I'm currently busy with other priorities so I won't have much time to help you. |
Beta Was this translation helpful? Give feedback.
-
case 'mouseUp': not work |
Beta Was this translation helpful? Give feedback.
-
Motivation
Improve available text formatting options.
Current behavior
Currently, only a small subset of Text element options are available
Desired behavior
To format text inside SVGEdit like if it were a Web Page (and indeed, my final goal is to use SVG instead of HTML)
Alternatives considered
Manually editing SVG MarkUp
Comments and info
I'd put efforts at the "Text on a path" feature, which is really useful, and I'd pay special attention to text formatting.
You can see some (if not all) text formatting support I'd like in SVGEdit here: http://www.cheat-sheets.org/own/svg/index.xhtml
Thanks
Thanks in advance for reading and for any help you could provide
Bye, Ivano
Beta Was this translation helpful? Give feedback.
All reactions