Skip to content
SimeonC edited this page Feb 18, 2014 · 3 revisions

There are several ways of displaying content from the HTML editor. The easiest is using ng-bind-html.

If you want to use our internal binder for a more consistent html output you can use the ta-bind directive. The difference between ths and ng-bind-html is that we remove some depreciated html attributes that the execCommand function adds in and replace them with their css counterparts.

<div ta-bind ng-model="htmlcontent"></div>

To explain this, ta-bind; this invokes the ta-bind directive. ng-model="htmlcontent" this tells the ta-bind directive that the HTML code to display is contained in the $scope.htmlcontent variable.

Clone this wiki locally