1.0.26 • Published 4 years ago
open-cb-editor v1.0.26
open-cb-editor
Planned upcoming features can be found in editor-feature-plan.md!
Installation
npm i open-cb-editor
Usage
This package creates a monaco editor instance on a div element.
The package exports a class which can be used to construct and interact with the editor.
To create the editor:
import { createEditor } from 'open-cb-editor';
htmlDiv = document.querySelector('target-div');
let editor = new createEditor(htmlDiv);
To merge code fragments from two or more editors into a single one:
import { createEditor, mergeCode} from 'open-cb-editor';
let subEditorOne = new createEditor(divOne);
let subEditorTwo = new createEditor(divTwo);
let mainEditor = new createEditor(divThree);
let codeFragmentOne = subEditorOne.getCode();
let codeFragmentTwo = subEditorTwo.getCode();
let combinedCode = mergeCode(codeFragmentOne, codeFragmentTwo);
mainEditor.setCode(combinedCode);
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.26
4 years ago
1.0.25
4 years ago
1.0.24
4 years ago
1.0.23
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.2
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2-0
4 years ago
1.0.1-0
4 years ago
1.0.0
4 years ago