1.0.26 • Published 5 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-editorUsage
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
5 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.22
5 years ago
1.0.21
5 years ago
1.0.20
5 years ago
1.0.26
5 years ago
1.0.25
5 years ago
1.0.24
5 years ago
1.0.23
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.2
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2-0
5 years ago
1.0.1-0
5 years ago
1.0.0
5 years ago