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

Bug 336276

Summary: Provide code for embedding the editor in html/blog posts
Product: [ECD] Orion Reporter: Andrew Niefer <aniefer>
Component: DocAssignee: Project Inbox <orion.doc-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse.felipe, Silenio_Quarti, simon_kaegi, thatnitind
Version: 0.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Andrew Niefer CLA 2011-02-03 14:55:26 EST
I wrote some code to do this on my blog, http://aniefer.blogspot.com/2011/02/embedding-orion-editor_02.html

A comment there was:

The code you wrote should be part of Orion. And it should work off of class, not name, for the pre's. And it should somehow include the language to parse the code. And your code in the pre's shouldn't include br's - pre already handles that for you :-)

Last suggestion, make this work like GitHub gists's "embed" feature. I should be able to include one line in my blog post, which points to the thing I want to view in the Orion editor, and it just works.
Comment 1 Felipe Heidrich CLA 2011-02-03 15:55:55 EST
Pat, can you please explain with more details how you expect this feature to work ?

Andrew, does this mean that generating something like http://download.eclipse.org/e4/orion/js/org.eclipse.orion.client.editor/orion-editor.js should be part of build process (at least for milestone) ?
Comment 2 Simon Kaegi CLA 2011-10-07 16:24:18 EDT
Andrew could you add some thoughts and then re-assign to the inbox.
Comment 3 Andrew Niefer CLA 2011-10-20 14:05:36 EDT
I don't think much needs to be done here, an example snippet similar to the blog post could be posted on the wiki.

I do think that Felipe's suggestion in comment #1 makes a lot of sense.  That original orion-editor.js is now way out of date, the builds should probably produce a built/minified js file that can be consumed in this way.
Comment 4 John Arthorne CLA 2015-05-05 14:53:30 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