Viewing: tinymce.js
// tinymce.init({ // selector: '#tinymceExample', // height: 300, // content_style: "body { font-size: 11pt; }", // default_text_color: 'red', // plugins: 'advlist autolink lists link image imageupload charmap print preview hr anchor pagebreak searchreplace wordcount visualblocks visualchars code fullscreen media table template codesample', // toolbar1: 'undo redo | formatselect | bold italic strikethrough forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link imageupload', // toolbar2: 'styleselect | removeformat | subscript superscript | codesample | hr | charmap emoticons | print preview media | code fullscreen', // image_advtab: true, // templates: [ // { // title: 'Test template 1', // content: 'Test 1' // }, // { // title: 'Test template 2', // content: 'Test 2' // } // ], // content_css: [], // images_upload_handler: function (blobInfo, success, failure) { // if (blobInfo?.blob) { // // Display the uploaded image in the editor // var imageUrl = URL.createObjectURL(blobInfo.blob()); // success(imageUrl); // } else { // failure('Invalid image'); // } // } // }); //
Return