blob: 0de368918137efb683354408dd91d64e2cbcbadd [file] [log] [blame]
<!DOCTYPE html>
Sample that shows how to use the edit.js file to create an editor. For a complete list
of editor configuration options, see orion.editor#edit.
<title>Orion Editor Sample</title>
<link rel="stylesheet" type="text/css" href="../../../orion/editor/themes/default.css"/>
#editor {
border: 1px solid teal;
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
margin: 20px;
pre {
margin: 0px;
<!-- Note if running this standalone you will need to copy requirejs from bundles/org.eclipse.orion.client.core/web/ -->
<script src="../../requirejs/require.js"></script>
/*globals require*/
baseUrl: '../..',
paths: {
i18n: 'requirejs/i18n'
require(["orion/editor/edit"], function(edit) {
lang: "js"
<pre id="editor">/*
* This is a orion editor sample.
function () {
var a = 'hi there!';