GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.95k stars 395 forks source link

Any way to set caret position or select all? #473

Closed koutsenko closed 6 years ago

koutsenko commented 6 years ago

Hello. I call editor.start() on dblclick linstener. But toolbar look like disabled couz no content selected or no content click made. How can i programmatically : 1) set caret position (to start, to end, or to click position) or select all 2) give a focus to editing element and make toolbox items enabled (trigger active state)?

Docs aren't too clear for me. Thx in advance.

koutsenko commented 6 years ago

I already got answers in your content-tools-spec.js. Unit tests are awesome!