feat(main):Use TinyMCEEditor
This commit is contained in:
@@ -10,18 +10,11 @@
|
||||
{{ parent() }}
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
window.prestashop.component.initComponents(['TranslatableField', 'TranslatableInput']);
|
||||
|
||||
if (typeof window.tinymce !== 'undefined') {
|
||||
window.tinymce.init({
|
||||
selector: 'textarea.autoload_rte',
|
||||
plugins: 'code link lists image',
|
||||
toolbar: 'bold italic underline | bullist numlist | link | code',
|
||||
menubar: false,
|
||||
height: 400,
|
||||
relative_urls: false,
|
||||
});
|
||||
}
|
||||
window.prestashop.component.initComponents([
|
||||
'TranslatableField',
|
||||
'TinyMCEEditor',
|
||||
'TranslatableInput',
|
||||
]);
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user