How to use the @ckeditor/ckeditor5-markdown-gfm/src/gfmdataprocessor function in @ckeditor/ckeditor5-markdown-gfm

To help you get started, we’ve selected a few @ckeditor/ckeditor5-markdown-gfm 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 mozilla / notes / ckeditor-build / src / markdown.js View on Github external
export default function Markdown(editor) {
  editor.data.processor = new GFMDataProcessor();
  // Override `toData` to store data as HTML instead of Markdown
  // Ref: https://github.com/ckeditor/ckeditor5-markdown-gfm/blob/6fb1654dea22ec0f6eb9ae440fb6737b2a77715b/src/gfmdataprocessor.js#L60
  editor.data.processor.toData = function toData(viewFragment) {
    const html = this._htmlDP.toData(viewFragment);

    return html;
  }
}
github mshossain110 / examinee / resources / assets / js / components / common / editor / Editor.vue View on Github external
function Markdown (editor) {
    editor.data.processor = new GFMDataProcessor(editor.editing.view.document)
}
github ckeditor / ckeditor5-markdown-gfm / docs / _snippets / features / markdown.js View on Github external
function Markdown( editor ) {
	editor.data.processor = new GFMDataProcessor();
}

@ckeditor/ckeditor5-markdown-gfm

GitHub Flavored Markdown data processor for CKEditor 5.

GPL-2.0-or-later
Latest version published 16 days ago

Package Health Score

91 / 100
Full package analysis

Popular @ckeditor/ckeditor5-markdown-gfm functions