<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: "doksoft_custom_templates",
toolbar: 'doksoft_custom_templates',
config.doksoft_custom_templates = [
[
'<img src="path/to/your/image.png"/>',
'<div>some code</div>',
'html'
],
[
'<div>Text template</div>',
'Text for insertion',
'text'
]
];
});
</script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
plugins: "doksoft_custom_templates",
toolbar: 'doksoft_custom_templates',
config.doksoft_custom_templates: [
[
'<img src="path/to/your/image.png"/>',
'<div>some code</div>',
'html'
],
[
'<div>Text template</div>',
'Text for insertion',
'text'
]
]
});
</script>
I bought custom_templates (tiny mce 4)
I need to add the array config.doksoft_custom_templates
Where i need add? At tinyMCE.init ?
Could you, please, give me one example? I tried to add but o got an error.
Regards,
Bill