jsyg-texteditor
v1.2.0
Published
svg text editor with JSYG framework
Downloads
667
Maintainers
Readme
JSYG.TextEditor
svg text editor with JSYG framework. It's a brick of JSYG.FullEditor, a full svg editor API.
Demo
http://yannickbochatay.github.io/JSYG.TextEditor/
Installation
npm install jsyg-texteditor
Example with module bundler
import TextEditor from "jsyg-texteditor"
import $ from "jquery"
let editor = new TextEditor('#mySVGContainer')
$('#mySVGContainer').on("click",function(e) {
if ( e.target.tagName == "text") {
editor.target(e.target)
editor.show()
}
})