1 | $(() => {
|
2 |
|
3 | if ($('#cms-plugin-redactor').length < 1) {
|
4 | return ;
|
5 | }
|
6 |
|
7 | const adminpath = $('#cms-plugin-redactor').data('adminpath');
|
8 | $R('#cms-plugin-redactor', {
|
9 | toolbarFixedTopOffset: 20,
|
10 | imageUpload: adminpath + '/cms/medias/upload',
|
11 | imageResizable: true,
|
12 | imagePosition: true,
|
13 | linkNewTab: true,
|
14 | plugins: [ 'table', 'alignment', 'video' ]
|
15 | });
|
16 |
|
17 | }); |
\ | No newline at end of file |