I’m trying to implement a custom TextEditor
for our use case. I found this implementation but looks like tool
property doesn’t exist on the new go.HTMLInfo();
anymore.
I’m using TypeScript so these are some of the errors:
const TextEditor = new go.HTMLInfo();
const tool = TextEditor.tool;
// ^ Property 'tool' does not exist on type 'HTMLInfo'
const scale = textarea.textScale;
// ^ Property 'textScale' does not exist on type 'HTMLTextAreaElement'
Should I be suppressing the TS errors here or is there a newer implementation that matches the types?