/JSYG.TextEditor

svg text editor (JSYG framework)

Primary LanguageJavaScriptMIT LicenseMIT

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()
  }
})