Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit cfb2899

Browse files
jarekb84deeg
authored andcommitted
(docs): remove deprecated trusted option
Closes #266
1 parent 4f6b0f6 commit cfb2899

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ scope.tinymceOptions = {
9494
}
9595
};
9696
```
97+
By default all TinyMCE content that is set to `ngModel` will be whitelisted by `$sce`.
9798

9899
In addition, it supports these additional optional options
99100

100101
- `format` Format to get content as, i.e. 'raw' for raw HTML, or 'text' for text only. Defaults to 'html'. Documentation [here](http://www.tinymce.com/wiki.php/api4:method.tinymce.Editor.getContent)
101-
- `trusted` When `true`, all TinyMCE content that is set to `ngModel` will be whitelisted by `$sce`
102102
- `baseURL` This will set [baseURL property on the EditorManager](https://www.tinymce.com/docs/api/class/tinymce.editormanager/)
103103
- `debounce` This will debounce the model update which helps with performance of editors with large text. Defaults to true.
104104

demo/demo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
</head>
1515
<body ng-app="ui.tinymce" ng-controller="DemoCtrl as demo">
1616
<form method="post">
17-
<textarea ui-tinymce="{trusted: true}"
17+
<textarea ui-tinymce
1818
ng-model="demo.tinymce"
1919
ng-change="demo.updateHtml()"></textarea>
2020
</form>
2121
<div ng-bind-html="demo.tinymceHtml"></div>
2222
</body>
23-
</html>
23+
</html>

0 commit comments

Comments
 (0)