Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336276 - Provide code for embedding the editor in html/blog posts
Summary: Provide code for embedding the editor in html/blog posts
Status: RESOLVED WONTFIX
Alias: None
Product: Orion
Classification: ECD
Component: Doc (show other bugs)
Version: 0.2   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 14:55 EST by Andrew Niefer CLA
Modified: 2015-05-05 14:53 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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