update umbEditorView with a better example

This commit is contained in:
Mads Rasmussen
2016-02-16 11:17:34 +01:00
committed by Rune Strand
parent 571d8086c8
commit 7bec4efc60

View File

@@ -9,26 +9,49 @@ Use this directive to construct the main editor window.
<h3>Markup example</h3>
<pre>
<div ng-controller="Umbraco.Controller as vm">
<div ng-controller="MySection.Controller as vm">
<umb-editor-view>
<form name="mySectionForm" novalidate>
<umb-editor-header
// header configuration>
</umb-editor-header>
<umb-editor-view>
<umb-editor-container>
// main content here
</umb-editor-container>
<umb-editor-header
name="vm.content.name"
hide-alias="true"
hide-description="true"
hide-icon="true">
</umb-editor-header>
<umb-editor-footer>
// footer content here
</umb-editor-footer>
<umb-editor-container>
// main content here
</umb-editor-container>
</umb-editor-view>
<umb-editor-footer>
// footer content here
</umb-editor-footer>
</umb-editor-view>
</form>
</div>
</pre>
<h3>Controller example</h3>
<pre>
(function () {
"use strict";
function Controller() {
var vm = this;
}
angular.module("umbraco").controller("MySection.Controller", Controller);
})();
</pre>
<h3>Use in combination with</h3>
<ul>