appleple / lite-editor

A Modern WYSIWYG Editor especially for inline elements
https://appleple.github.io/lite-editor/
MIT License
176 stars 10 forks source link

Documentation Methods 404 Error #32

Closed iocron closed 1 year ago

iocron commented 6 years ago

The Docs https://appleple.github.io/lite-editor/methods.html end up on a 404 Error Page.

steelydylan commented 6 years ago

Hi @iocron Thank you I'll prepare the page soon and let you know :)

iocron commented 6 years ago

@steelydylan Thank you 👍 :)

steelydylan commented 6 years ago

Hi @iocron I just added the methods page https://appleple.github.io/lite-editor/methods.html

themarslabs commented 2 years ago

Hi @steelydylan, methods is not working, or am i doing anything wrong? Like:

const editor = new LiteEditor('#print_imposition_text', { nl2br: true }); editor.insertHtml("<b>test</b>");

1000-x-t30 commented 1 year ago

Hi @themarslabs Sorry for the delay in replying.

The insertHtml function replaces the selected area, so after instantiating lite-editor, there is no selection and an error will occur. Please try it. Thank you in advance.

1000-x-t30 commented 1 year ago

close