How to use @toast-ui/editor - 2 common examples

To help you get started, we’ve selected a few @toast-ui/editor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github snowlyg / IrisAdminApi / www / src / components / MarkdownEditor / index.vue View on Github external
initEditor() {
      this.editor = new Editor({
        el: document.getElementById(this.id),
        ...this.editorOptions
      })
      if (this.value) {
        this.editor.setMarkdown(this.value)
      }
      this.editor.on('change', () => {
        this.$emit('input', this.editor.getMarkdown())
      })
    },
    destroyEditor() {
github gitlabhq / gitlabhq / spec / frontend / vue_shared / components / rich_content_editor / rich_content_editor_integration_spec.js View on Github external
const buildEditor = () => {
    editor = new Editor({
      el: document.body,
      customHTMLRenderer: buildMarkdownToHTMLRenderer(),
    });

    registerHTMLToMarkdownRenderer(editor);
  };

@toast-ui/editor

GFM Markdown Wysiwyg Editor - Productive and Extensible

MIT
Latest version published 1 year ago

Package Health Score

68 / 100
Full package analysis

Popular @toast-ui/editor functions