Skip to content

Commit

Permalink
build(npm): update tinymce to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroverts committed Apr 17, 2022
1 parent 361df4e commit f9bd975
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"sass": "^1.50.0",
"sass-loader": "^12.6.0",
"semantic-release": "^19.0.2",
"tinymce": "^5.10.3"
"tinymce": "^6.0.1"
},
"dependencies": {
"alpinejs": "^3.9.6",
Expand Down
5 changes: 1 addition & 4 deletions resources/js/tinymce.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// TinyMCE
import tinymce from 'tinymce';
import 'tinymce/icons/default';
import 'tinymce/themes/silver';
import 'tinymce/plugins/code';
import 'tinymce/plugins/paste';
import 'tinymce/plugins/link';

tinymce.init({
selector: 'textarea.tinymce',
plugins: ['code', 'paste', 'link']
plugins: ['code', 'link']
});
1 change: 1 addition & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ mix.js('resources/js/app.js', 'public/js')
},
})
.copyDirectory('node_modules/tinymce/icons', 'public/js/icons')
.copyDirectory('node_modules/tinymce/models', 'public/js/models')
.copyDirectory('node_modules/tinymce/themes', 'public/js/themes')
.copyDirectory('node_modules/tinymce/skins', 'public/js/skins')
.extract();
Expand Down

0 comments on commit f9bd975

Please sign in to comment.