diff --git a/docs/reference/plugins/core.md b/docs/reference/plugins/core.md index 92440c835..cc426e63f 100644 --- a/docs/reference/plugins/core.md +++ b/docs/reference/plugins/core.md @@ -29,10 +29,6 @@ The core plugin renders a default block and inline node, wrapping in a `
` a The default block node also controls its own placeholder logic, which is controlled via the [``](../components/editor.md)'s placeholder options. -#### `renderMark` - -The core plugin adds a default mark with an empty set of styles. - ## Overriding Defaults diff --git a/lib/components/editor.js b/lib/components/editor.js index 8322b6406..096c736b2 100644 --- a/lib/components/editor.js +++ b/lib/components/editor.js @@ -243,6 +243,8 @@ class Editor extends React.Component { const style = plugin.renderMark(mark, marks, this.state.state, this) if (style) return style } + + return {} } /** diff --git a/lib/plugins/core.js b/lib/plugins/core.js index e7d5c2ef6..de0142b01 100644 --- a/lib/plugins/core.js +++ b/lib/plugins/core.js @@ -101,14 +101,6 @@ function Plugin(options = {}) { } - /** - * Define a default mark renderer. - * - * @type {Object} - */ - - const DEFAULT_MARK = {} - /** * Return the plugin. */ @@ -291,17 +283,6 @@ function Plugin(options = {}) { return node.kind == 'block' ? DEFAULT_BLOCK : DEFAULT_INLINE - }, - - /** - * The core `mark` renderer, with no styles. - * - * @param {Mark} mark - * @return {Object} style - */ - - renderMark(mark) { - return DEFAULT_MARK } } }