Skip to content

set dynamic content inside editor #147

@vincentli99

Description

@vincentli99

Thank you for offering this good gem!
I had a difficulty to set dynamic content within the editor. It is not simple like $('#textarea').html("updated content"). Finally I found a great solution from: https://www.codementor.io/tips/0643978211/update-wysihtml5-editor-content-dynamically-using-jquery
That is:
$('#textarea-id').data("wysihtml5").editor.setValue('new content');
Is it possible to put it in the readme doc? I believe it will help many developers. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions