forked from johnjbarton/OrionEditorEmbedded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.txt
58 lines (46 loc) · 2.42 KB
/
Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Adapt the Orion Embedded Editor to be an Orion Editor
Orion has an editor application (edit.html) and a demo project showing how to
embed the editor widget in another application. However the embed widget code
exists to allow another application to customize the editor.
This project starts with the embed widget code and adds more Orion code to
re-create the Orion editor application experience outside of the editor
application.
With this project we can use the editor as a component in another project
and it should feel like we are still editing in Orion.
Development Installation (using Orion)
The development setup is a bit complicated because the Orion tooling is still
under development. We want to combine several modular git projects via server-
side integration. This is a two step process:
1. Clone the git projects:
https://johnjbarton@github.com/johnjbarton/OrionEditorEmbedded.git
https://github.com/eclipse/orion.client.git
https://johnjbarton@github.com/johnjbarton/MetaObject.git
2. Create the server integration:
2.1 Orion > Sites > Create Site
2.2 Convert To Self-Hosting
2.3 Add (at the bottom) mappings:
http://localhost:8080/file/XXX /orion.client
http://localhost:8080/file/YYY /MetaObject
http://localhost:8080/file/ZZZ /OrionEditorEmbedded
Replace <localhost> with your domain and XXX with the letters in Orion
Navigator for those projects.
3. Open OrionEditorEmbedded/editor.html to see the editor without
Orion wrapper, OR
Install OrionEditorEmbedded/editorPlugin.html to see the editor wrapped
in the Orion UI
Architecture:
editorPlugin.html orion.page.content plugin, calls editor.html
editor.html editor in a web page, tests editorInserter.js
requireConfig.js require.js path setup, shared
requireOverrides.js Main to pull in modules, specific to editor.html
editorInserter.js API for installing OroinEditorEmbedded in an app
OrionEditor.js modified Orion embeddededitor.js, add stuff here to
make this editor act like Orion's edit.html
orionAssembly.js aggregate a ton of files onto a couple of objects
Dependencies:
MetaObject for orionAssembly
requirejs via MetaObject/requirejs/require.js for loading JS
orion.client git project
Demos of the embedded editor:
http://orion.eclipse.org/examples/editor/embeddededitor.html
http://wiki.eclipse.org/Orion/How_Tos/Setup_Orion_Client_Hosted_Site_on_OrionHub