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
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

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