41 lines
1.8 KiB
JavaScript
41 lines
1.8 KiB
JavaScript
/*
|
|
Template Name: Qovex - Responsive Bootstrap 4 Admin Dashboard
|
|
Author: Themesbrand
|
|
Website: https://themesbrand.com/
|
|
Contact: themesbrand@gmail.com
|
|
File: Form edittor
|
|
*/
|
|
|
|
$(document).ready(function () {
|
|
if($("#elm1").length > 0){
|
|
tinymce.init({
|
|
language: "fa_IR",
|
|
selector: "textarea#elm1",
|
|
height:300,
|
|
plugins: [
|
|
"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
|
|
"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
|
|
"save table directionality emoticons template paste"
|
|
],
|
|
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons",
|
|
style_formats: [
|
|
{title: 'Bold text', inline: 'b'},
|
|
{title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
|
|
{title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
|
|
{title: 'Example 1', inline: 'span', classes: 'example1'},
|
|
{title: 'Example 2', inline: 'span', classes: 'example2'},
|
|
{title: 'Table styles'},
|
|
{title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
|
|
]
|
|
});
|
|
}
|
|
|
|
$('.summernote').summernote({
|
|
height: 300, // set editor height
|
|
minHeight: null, // set minimum height of editor
|
|
maxHeight: null, // set maximum height of editor
|
|
focus: true, // set focus to editable area after initializing summernote
|
|
lang: 'fa-IR'
|
|
});
|
|
|
|
}); |