improve build script
This commit is contained in:
@@ -267,6 +267,8 @@ export class Editor extends EventEmitter {
|
||||
}),
|
||||
})
|
||||
|
||||
console.log({ plugins: this.extensionManager.plugins })
|
||||
|
||||
// `editor.view` is not yet available at this time.
|
||||
// Therefore we will add all plugins and node views directly afterwards.
|
||||
const newState = this.state.reconfigure({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Plugin } from 'prosemirror-state'
|
||||
import { Plugin, PluginKey } from 'prosemirror-state'
|
||||
import { createExtension } from '../Extension'
|
||||
|
||||
export const FocusEvents = createExtension({
|
||||
@@ -7,6 +7,7 @@ export const FocusEvents = createExtension({
|
||||
|
||||
return [
|
||||
new Plugin({
|
||||
key: new PluginKey('focusEvents'),
|
||||
props: {
|
||||
attributes: {
|
||||
tabindex: '0',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Plugin } from 'prosemirror-state'
|
||||
import { Plugin, PluginKey } from 'prosemirror-state'
|
||||
import { Slice, Fragment, MarkType } from 'prosemirror-model'
|
||||
|
||||
export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any) => any): Plugin {
|
||||
@@ -51,6 +51,7 @@ export default function (regexp: RegExp, type: MarkType, getAttrs?: (match: any)
|
||||
}
|
||||
|
||||
return new Plugin({
|
||||
key: new PluginKey('markPasteRule'),
|
||||
props: {
|
||||
transformPasted: slice => {
|
||||
return new Slice(handler(slice.content), slice.openStart, slice.openEnd)
|
||||
|
||||
Reference in New Issue
Block a user