1.0.3 • Published 1 month ago
@neo4j-cypher/codemirror v1.0.3
@neo4j-cypher/codemirror
This package provides a variety of extensions to enable cypher language support in codemirror 6.
This package exports those extensions, and provides a convenience method to create an editor with the following API:
// import { EditorView } from 'codemirror';
// import { CypherEditorSupport } from '@neo4j-cypher/editor-support';
const createCypherEditor = (
parentDOMElement,
{ text = "initial text here", extensions = undefined } = {}
) => {
// create editor & editorSupport using given extensions, or default extensions if undefined
const editor = new EditorView({
parentDOMElement,
state: initialState // also contains editorSupport for use by extensions
});
return {
editor: EditorView,
editorSupport: CypherEditorSupport
};
};
1.0.3
1 month ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
1.0.0-next.22
1 year ago
1.0.0-next.21
1 year ago
1.0.0-next.20
1 year ago
1.0.0-next.23
1 year ago
1.0.0-next.19
1 year ago
1.0.0-next.18
1 year ago
1.0.0-next.17
1 year ago
1.0.0-next.16
1 year ago
1.0.0-next.2
1 year ago
1.0.0-next.11
1 year ago
1.0.0-next.10
1 year ago
1.0.0-next.15
1 year ago
1.0.0-next.14
1 year ago
1.0.0-next.13
1 year ago
1.0.0-next.12
1 year ago
1.0.0-next.3
1 year ago
1.0.0-next.4
1 year ago
1.0.0-next.5
1 year ago
1.0.0-next.6
1 year ago
1.0.0-next.7
1 year ago
1.0.0-next.8
1 year ago
1.0.0-next.9
1 year ago
1.0.0-next.1
1 year ago
1.0.0-next.0
1 year ago