Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Orion » How to show multiple editor in one page with built-codeEdit_9.0
How to show multiple editor in one page with built-codeEdit_9.0 [message #1712057] Wed, 21 October 2015 06:45
Mickey Min is currently offline Mickey MinFriend
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.
});
Previous Topic:How to host orion instance in a web container
Next Topic:Clone a recently initialized repository for another user
Goto Forum:
  


Current Time: Wed Jan 24 10:08:29 GMT 2018

Powered by FUDForum. Page generated in 0.01770 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software