UNPKG

@steroidsjs/ckeditor5

Version:

The development environment of CKEditor 5 – the best browser-based rich text editor.

37 lines (31 loc) 828 B
/** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module markdown-gfm/markdown */ import { Plugin } from 'ckeditor5/src/core'; import GFMDataProcessor from './gfmdataprocessor'; /** * The GitHub Flavored Markdown (GFM) plugin. * * For a detailed overview, check the {@glink features/markdown Markdown feature documentation}. * * @extends module:core/plugin~Plugin */ export default class Markdown extends Plugin { /** * @inheritDoc */ constructor( editor ) { super( editor ); editor.data.processor = new GFMDataProcessor( editor.data.viewDocument ); } /** * @inheritDoc */ static get pluginName() { return 'Markdown'; } }