1.0.3 • Published 1 year 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 year ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.0-next.22
2 years ago
1.0.0-next.21
2 years ago
1.0.0-next.20
2 years ago
1.0.0-next.23
2 years ago
1.0.0-next.19
2 years ago
1.0.0-next.18
2 years ago
1.0.0-next.17
2 years ago
1.0.0-next.16
2 years ago
1.0.0-next.2
3 years ago
1.0.0-next.11
3 years ago
1.0.0-next.10
3 years ago
1.0.0-next.15
2 years ago
1.0.0-next.14
3 years ago
1.0.0-next.13
3 years ago
1.0.0-next.12
3 years ago
1.0.0-next.3
3 years ago
1.0.0-next.4
3 years ago
1.0.0-next.5
3 years ago
1.0.0-next.6
3 years ago
1.0.0-next.7
3 years ago
1.0.0-next.8
3 years ago
1.0.0-next.9
3 years ago
1.0.0-next.1
3 years ago
1.0.0-next.0
3 years ago