How to use the prosemirror-markdown.defaultMarkdownSerializer.serialize function in prosemirror-markdown

To help you get started, we’ve selected a few prosemirror-markdown 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 eljefedelrodeodeljefe / vue-prosemirror-2 / index.js View on Github external
onAction: (action) => {
            self.$emit('_content-change-editor', action)
            self.content.editor = this.view.editor.state.doc
            self.content.markdown = defaultMarkdownSerializer.serialize(this.view.editor.state.doc)
          }
        })
github fiatjaf / coisas / components / ProseMirror.js View on Github external
changed (txn) {
    if (txn.docChanged) {
      let content = defaultMarkdownSerializer.serialize(this.view.state.doc)
      this.value = content
      this.props.onChange(content)
    }
  }
github ProseMirror / website / example / markdown / index.js View on Github external
get content() {
    return defaultMarkdownSerializer.serialize(this.view.state.doc)
  }
  focus() { this.view.focus() }
github pubpub / pubpub / src / components / AtomTypes / Document / proseEditor / simpleEditor.js View on Github external
toMarkdown: () => {
      const markdown = defaultMarkdownSerializer.serialize(view.state.doc);
      return markdown;
    },
    focus: () => {
github pubpub / pubpub-editor / packages / pubpub-prose / src / prosemirror-setup / editors / simpleEditor.js View on Github external
toMarkdown: () => {
      const markdown = defaultMarkdownSerializer.serialize(view.state.doc);
      return markdown;
    },
    focus: () => {