marcellov7 / tex

TEX is a ultra-lightweight and straightforward JavaScript library for creating rich text editors (WYSIWYG) directly in the browser. Pure JavaScript, no dependencies, written in ES6.
MIT License
255 stars 2 forks source link

How to change the content of the editor in certain cases? #14

Open YusufDurmaz opened 2 weeks ago

YusufDurmaz commented 2 weeks ago

First of all, I would like to say that I like the text editor you made. I need to be able to change the content of the text editor when a button is clicked. How can I do this?

marcellov7 commented 4 days ago

Hi, you just need to modify the div content with js by targeting

target .tex-content

maybe I will release soon a setContent to do this and make it easier. Thanks