Editor

Introduction

We used tinymce , the most powerful text editing platform for building content for the web..

How to Setup

HTML Structure

<div class="tinymce-wrap">
    <textarea class="tinymce"></textarea>
</div>

Dependency

JS

<!-- Tinymce JavaScript -->
<script src="vendors/tinymce/tinymce.min.js"></script>

Initialize tinymce JS

/*Tinymce Init*/
$(function() {
	"use strict";
	
	tinymce.init({
	  selector: '.tinymce',
	  height: 300,
	  plugins: [
		'advlist autolink lists link image charmap print preview anchor',
		'searchreplace visualblocks code fullscreen',
		'insertdatetime media table contextmenu paste code'
	  ],
	  toolbar: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
	 
	});
});

Last updated