Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
autoinit: redactor
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Sep 19, 2019
1 parent 0c49def commit 8c6afc0
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/js/all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/css/app.css": "/css/app.css?id=c9f8cd41799b385cd014",
"/js/all.js": "/js/all.js?id=b073912d523016ef24ac",
"/js/all.js": "/js/all.js?id=01d8e503d6e806605627",
"/css/all.css": "/css/all.css?id=414acc0ef56df5f6d37d",
"/semantic/semantic.min.css": "/semantic/semantic.min.css?id=8326a6c2bdbe93f39c6f"
}
56 changes: 56 additions & 0 deletions resources/js/init/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,62 @@ $(function () {
});
}

if (jQuery().redactor) {
$('[data-role="redactor"]').each(function () {
$(this).redactor({
plugins: [
'fontcolor',
'alignment',
'video',
'fullscreen',
'table',
],
toolbarFixedTopOffset: 50,
minHeight: '300px',
imageUpload: $(this).data('upload-url'),
imageResizable: true,
imagePosition: true,
imageData: {
'_token': $(this).data('token'),
},
fontcolors: [
'#000000',
'#111111',
'#222222',
'#333333',
'#666666',
'#999999',
'#BBBBBB',
'#CCCCCC',
'#DDDDDD',
'#EEEEEE',
'#FFFFFF',
'#f44336',
'#f44336',
'#E91E63',
'#9C27B0',
'#673AB7',
'#3F51B5',
'#2196F3',
'#03A9F4',
'#00BCD4',
'#009688',
'#4CAF50',
'#8BC34A',
'#CDDC39',
'#FFC107',
'#FF9800',
'#FF5722',
'#FF0000',
'#b026fe',
'#0000ff',
'#00FF00',
'#fff000',
'#ff6000',
],
});
});
}
});


0 comments on commit 8c6afc0

Please sign in to comment.