tx-tinymce

0.0.8 • Public • Published

tx-tinymce

An AngularJS directive for the TinyMCE editor.

Basic usage:

  <textarea tx-tinymce ng-model="comment"></textarea>

tx-tinymce requires a ng-model attribute and as usual with ng-model we're talking a two-way binding between model and, in this case, the editor.

With options, passed directly to TinyMCE init():

  <textarea tx-tinymce="{ toolbar: 'bold | italic' }" ng-model="comment"></textarea>

or...

function TinyMCECtrl($scope) {
  $scope.config = { toolbar: 'bold | italic' }
}
  <div ng-controller="TinyMCECtrl">
    <textarea tx-tinymce="config" ng-model="comment"></textarea>
  </div>

Checkout the demo for more usage examples.

Readme

Keywords

Package Sidebar

Install

npm i tx-tinymce

Weekly Downloads

0

Version

0.0.8

License

MIT

Last publish

Collaborators

  • esvit