Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 422799

Summary: Improve stand alone editor documentation
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: oliver.kopp
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Silenio Quarti CLA 2013-11-28 14:08:11 EST
The stand alone editor documentation needs work. Here is a post from the mailing list that shows some areas to improve:

http://dev.eclipse.org/mhonarc/lists/orion-dev/msg02720.html

"
I'm trying to replace codemirror by Orion's Editor. Thereby, I'm
following http://wiki.eclipse.org/Orion/How_Tos/Editor_Build and I
also found http://mirrors.xmission.com/eclipse/orion/jsdoc/symbols/orion.editor.Editor.html.

It is not clear to me, how I can get the text content of the editor.
Could you give me a hint how I can get a reference to the editor
object? The return value of "edit()" seems to return internal objects
only.

Is it possible to pass "id" instead of "className" to edit to generate
the editor only on a specified pre field?

It seems to be impossible to turn a textarea into an editor. This
makes it difficult to use the editor in a form. Therefore, I've asked
how to get the (formatted) content of the editor. $(".XMLtextarea
.textviewContent").text() seems to be a first shot, but it misses the
line breaks. Then, I can fill up my request data by hand.

BTW: In the howto, I suppose "2.0" can be replaced by "4.0"? :)"
"
Comment 1 John Arthorne CLA 2015-05-05 14:38:36 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html