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:
@@ -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>
|
Reference in New Issue
Block a user