Construct a new instance of MarkdownPastePlugin
Options to control the markdown paste behavior
The last method that editor will call to a plugin before it is disposed. Plugin can take this chance to clear the reference to editor. After this method is called, plugin should not call to any editor method since it will result in error.
Get name of this plugin
The first method that editor will call to a plugin when editor is initializing. It will pass in the editor instance, plugin should take this chance to save the editor reference so that it can call to any editor method or format API later.
The editor object
Core method for a plugin. Once an event happens in editor, editor will call this method of each plugin to handle the event as long as the event is not handled exclusively by another plugin.
The event to handle:
Generated using TypeDoc
Markdown paste plugin. Handles the BeforePaste event and, when the pasted content can be interpreted as markdown, converts the plain text into a Content Model and pastes it as rich markdown content instead of the original clipboard HTML.