Skip to content

How to reset the editor's content? #20

Description

@selosele

I want to reset form, with editor's content. Is it possible?

var md = new MdEditor('#textarea', {
  uploader: true,
  preview: false,
});

$('#resetFormBtn').on('click', function(){
  $('#form')[0].reset();
  md.editor.reset(); // here
});

and How to set value of editor? for example,

md.editor.value(myValue);

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