update product-detail

This commit is contained in:
2024-01-25 17:37:49 +07:00
parent 77e7773cc6
commit b5a10581a0
5 changed files with 265 additions and 233 deletions

View File

@@ -1,5 +1,9 @@
{% include javascript/global %}
{% if global.module.name == 'home' %}
{% include javascript/homepage %}
{% if global.name == 'home' %}
{% include javascript/homepage %}
{% endif %}
{% if global.name == 'product' %}
{% include javascript/product_form %}
{% endif %}

View File

@@ -0,0 +1,24 @@
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script>
tinymce.init({
selector: 'textarea#product-desc',
height: 350,
menubar: true,
plugins: [
'advlist autolink lists link image charmap print preview anchor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table paste code help wordcount'
],
toolbar: 'undo redo | formatselect | ' +
'bold italic backcolor | alignleft aligncenter ' +
'alignright alignjustify | bullist numlist outdent indent | ' +
'removeformat | help',
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
});
</script>