blob: a37be294d1dec9512d412d071bc3586109a13ddb [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.
<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-top: 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"
<div id="editor"><pre>/*
* This is a orion editor sample.
function () {
var a = 'hi there!';