How to show multiple editor in one page with built-codeEdit_9.0 [message #1712057] |
Wed, 21 October 2015 06:45 |
Mickey Min Messages: 2 Registered: September 2015 |
Junior Member |
|
|
Hi,
I am following the example to show editor with embedded tools by built-codeEdit_9.0. Everything is OK if I just show one editor. But If I want to show two editors, the editors will impact each other.
For example, if there is syntax error in editor1, the error is shown in editor2 at same place even they have different content.
Does some one know how to fix this?
Here is part of code when create editor, i just copy the example twice in one page.
codeEdit.create({parent: "embeddedEditor", contentType: "application/javascript", contents: contents}).then(function(editorViewer) {
document.getElementById("progressMessageDiv").textContent = "Plugins loaded!";
//You can call APIs from editorViewer.editor for further actions.
});
var codeEdit2 = new orion.codeEdit();
codeEdit2.create({parent: "embeddedEditor_new", contentType: "application/javascript", contents: "abc"}).then(function(editorViewer) {
document.getElementById("progressMessageDiv").textContent = "Plugins loaded!";
//You can call APIs from editorViewer.editor for further actions.
});
|
|
|
Powered by
FUDForum. Page generated in 0.02164 seconds