mirror of https://github.com/Squidex/squidex.git
10 changed files with 202 additions and 18 deletions
@ -0,0 +1,45 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
|
|||
<head> |
|||
<meta charset="utf-8"> |
|||
|
|||
<!-- Load the editor sdk from the local folder or https://cloud.squidex.io/scripts/editor-sdk.js --> |
|||
<script src="editor-sdk.js"></script> |
|||
|
|||
<style> |
|||
textarea { |
|||
border-radius: 0; |
|||
border: 0; |
|||
bottom: 0; |
|||
box-sizing: border-box; |
|||
left: 0; |
|||
position: fixed; |
|||
resize: none; |
|||
right: 0; |
|||
top: 0; |
|||
} |
|||
</style> |
|||
</head> |
|||
|
|||
<body> |
|||
<textarea name="content" id="editor"></textarea> |
|||
|
|||
<script> |
|||
var element = document.getElementById('editor'); |
|||
|
|||
// When the field is instantiated it notifies the UI that it has been loaded. |
|||
// |
|||
// Furthermore it sends the current size to the parent. |
|||
var field = new SquidexFormField(); |
|||
|
|||
// Init is called once with a context that contains the app name, schema name and authentication information. |
|||
field.onInit(function (context) { |
|||
element.innerHTML = JSON.stringify(context, null, 2); |
|||
|
|||
grow(element); |
|||
}); |
|||
</script> |
|||
</body> |
|||
|
|||
</html> |
|||
Loading…
Reference in new issue