Searched refs:pluginNode (Results 1 – 2 of 2) sorted by relevance
| /plugin/catmenu/script/ |
| H A D | prosemirror.js | 181 function insertCatmenuBlock(view, pluginNode) { argument 186 if ($from.parent.canReplaceWith(index, index, pluginNode.type)) { 187 view.dispatch(state.tr.replaceSelectionWith(pluginNode)); 194 view.dispatch(state.tr.insert(insertPos, pluginNode)); 329 const pluginNode = createCatmenuNode(schema, syntax); 330 if (!pluginNode) return; 333 …spatch(view.state.tr.replaceWith(existing.pos, existing.pos + existing.node.nodeSize, pluginNode)); 334 } else if (!insertCatmenuBlock(view, pluginNode)) { 336 view.dispatch(view.state.tr.insert(endPos, pluginNode));
|
| /plugin/visualindex/script/ |
| H A D | prosemirror.js | 213 function insertVisualIndexBlock(view, pluginNode) { argument 218 if ($from.parent.canReplaceWith(index, index, pluginNode.type)) { 219 view.dispatch(state.tr.replaceSelectionWith(pluginNode)); 226 view.dispatch(state.tr.insert(insertPos, pluginNode)); 395 const pluginNode = createVisualIndexNode(schema, syntax); 396 if (!pluginNode) return; 399 …spatch(view.state.tr.replaceWith(existing.pos, existing.pos + existing.node.nodeSize, pluginNode)); 400 } else if (!insertVisualIndexBlock(view, pluginNode)) { 402 view.dispatch(view.state.tr.insert(endPos, pluginNode));
|