| Summary: | Text view example not working standalone | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | John Arthorne <john.arthorne> |
| Component: | Editor | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Silenio_Quarti, simon_kaegi |
| Version: | unspecified | Flags: | simon_kaegi:
review+
|
| Target Milestone: | 0.5 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
John Arthorne
This patch fixed it for me:
diff --git a/bundles/org.eclipse.orion.client.editor/web/examples/textview/demo.html b/bundles/org.eclipse.orion.client.editor/web/examples/textview/demo.html
index 71d448e..335fee7 100644
--- a/bundles/org.eclipse.orion.client.editor/web/examples/textview/demo.html
+++ b/bundles/org.eclipse.orion.client.editor/web/examples/textview/demo.html
@@ -14,7 +14,7 @@
paths: {
text: 'requirejs/text',
i18n: 'requirejs/i18n',
- tests: '/js-tests',
+ tests: 'js-tests',
domReady: 'requirejs/domReady'
}
});
The change is good to me. We should not have absolute paths. While at this, we should remove the same path mapping from the following files since they are unnecessary. minimaleditor.html embeddededitor.html John, how do I run the example standalone? Just double-click the HTML in the file explorer? (In reply to comment #2) > The change is good to me. We should not have absolute paths. While at this, we > should remove the same path mapping from the following files since they are > unnecessary. > > minimaleditor.html > embeddededitor.html > > John, how do I run the example standalone? Just double-click the HTML in the > file explorer? 1) Clone client repository to local machine 2) Copy requirejs folder from org.eclipse.orion.client.core to client.editor. 3) Double-click the example HTML file to open it. I'm sure you can also run it in an Orion site, I just happened to be working completely offline today so that's how I was doing it. |