Angular's editor tinymce
Effect picture
Bower installation of npm via nodejs depends on installation, execute bower install angular-ui-tinymce on the command line; note (bower and git are local global variables)
After waiting for bower to download automatically, refer to several JS files on the DEMO page
one hundred and twenty three
There is no need to load the css file. Js has already helped us to load it, so local cros is allowed to enable chrome locally.
As long as a controller, the controller is initialized configuration, no configuration is the default configuration (there is no configuration to change)
There is no need to change the code of HTML and JS, just copy it.
Run the following code
Var app = angular.module ('app', [' ui.tinymce']) app.controller ("editorController", function ($scope) {$scope.tinymceOptions = {
/ / configure the callback event handle_event_callback: function (e) {console.log (e);}}; $scope.tinymceModel = "niceMCE" / / initialize the binding value})
To sum up, it's a simple plug-in.
New channel IELTS