diff --git a/app/javascript/packs/tiny_mce.js b/app/javascript/packs/tiny_mce.js index 60c7da274..2fc680b61 100644 --- a/app/javascript/packs/tiny_mce.js +++ b/app/javascript/packs/tiny_mce.js @@ -11,6 +11,7 @@ import 'tinymce/plugins/autoresize'; import 'tinymce/plugins/link'; import 'tinymce/plugins/advlist'; import 'tinymce/plugins/codesample'; +import 'tinymce/plugins/code'; import 'tinymce/plugins/autolink'; import 'tinymce/plugins/lists'; import 'tinymce/plugins/image'; @@ -193,7 +194,7 @@ window.TinyMCE = (() => { .before(`
`); tinyMceContainer.addClass('hidden'); const plugins = ` - image table autosave autoresize link advlist codesample autolink lists + image table autosave autoresize link advlist codesample code autolink lists charmap anchor searchreplace wordcount visualblocks visualchars insertdatetime nonbreaking save directionality customimageuploader marvinjs custom_image_toolbar help quickbars ${window.extraTinyMcePlugins ? window.extraTinyMcePlugins : ''}