feat(main):Use TinyMCEEditor
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user