TinyMCE

function init_editor(){
	tinymce.init({
		selector: "textarea.tinymce", 
		plugins: [
         "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
         "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
         "save table contextmenu directionality emoticons template paste textcolor responsivefilemanager"
		], 
		toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | preview media fullpage fullscreen | forecolor backcolor responsivefilemanager", 
		//external_filemanager_path: "/assets/admin/plugins/filemanager/",
		external_filemanager_path: base_url + "assets/admin/plugins/filemanager/",
		filemanager_title:"Responsive Filemanager" ,
		external_plugins: { 
			"filemanager" : "plugins/responsivefilemanager/plugin.min.js"
		}, 
		relative_urls: false, 
		remove_script_host : false, 
		link_class_list: [
	        {title: 'None', value: ''},
	        {title: '按鈕', value: 'custom mybtn'}
	    ], 
	    //Prevent replacing space with  
	    entity_encoding: 'raw',
	    style_formats: [
			{ title: 'H1', block: 'h1', classes:'custom-style'},
			{ title: 'H2', block: 'h2', classes:'custom-style'},
			{ title: 'H3', block: 'h3', classes:'custom-style'},
			{ title: 'H4', block: 'h4', classes:'custom-style'},
			{ title: 'H5', block: 'h5', classes:'custom-style'},
			{ title: 'H6', block: 'h6', classes:'custom-style'}
			//{ title: '區塊小標', block: 'h3', styles: {color: '#9458e4'}},
			//{ title: '底線紫色標題', block: 'h2', classes:'custom underline-subject' }
		]
	});
	//console.log(base_url);
}

 Predefined Link Classes

Full Screen Plugin