feat(main):Use TinyMCEEditor

This commit is contained in:
2026-06-23 12:02:18 +02:00
parent 9ee25402df
commit 9e6c26da38
3 changed files with 10 additions and 24 deletions
@@ -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 %}