1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-23 05:51:42 +04:00
Files
tabler/src/pages/_includes/ui/tinymce.html
T
2022-06-09 21:17:58 +02:00

30 lines
1.0 KiB
HTML

{% assign id = include.id | default: 'mytextarea' %}
<form method="post">
<textarea id="tinymce-{{ id }}">Hello, <b>Tabler</b>!</textarea>
</form>
{% capture_global scripts %}
<script>
// @formatter:off
document.addEventListener("DOMContentLoaded", function () {
tinyMCE.init({
selector: '#tinymce-{{ id }}',
height: 300,
menubar: false,
statusbar: false,
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',
content_style: 'body { font-family: -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }'
});
})
// @formatter:on
</script>
{% endcapture_global %}