1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-18 10:51:21 +02:00

feat(admin-plugin): code cleanup for trumbowyg module #211

This commit is contained in:
Awilum
2020-02-10 15:05:37 +03:00
parent 3a7f0ca64c
commit 38a15bba38

View File

@@ -1,21 +1,31 @@
<script type="text/javascript">
$.trumbowyg.svgPath = '{{base_url()}}/site/plugins/admin/assets/dist/fonts/trumbowyg/icons.svg';
<script>
$.trumbowyg.svgPath = '{{base_url()}}/site/plugins/admin/assets/dist/fonts/trumbowyg/icons.svg';
$('.js-html-editor').trumbowyg({
btnsDef: {
// Customizables dropdowns
image: {
dropdown: ['insertImage', 'noembed'],
dropdown: [
'insertImage', 'noembed'
],
ico: 'insertImage'
}
},
btns: [
['undo', 'redo'], // Only supported in Blink browsers
[
'undo', 'redo'
], // Only supported in Blink browsers
['formatting'],
['strong', 'em', 'del'],
[
'strong', 'em', 'del'
],
['link'],
['image'],
['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
['unorderedList', 'orderedList'],
[
'justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'
],
[
'unorderedList', 'orderedList'
],
['table'],
['removeformat'],
['fullscreen'],
@@ -25,4 +35,4 @@
autogrow: false,
removeformatPasted: true
});
</script>
</script>