From 238354a314811fcf1a4f84b6cdc1f81d1ac9c23b Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 21 Feb 2023 11:23:52 +0100 Subject: [PATCH] Add back basic TinyMCE html editor [SCI-7965] --- app/javascript/packs/tiny_mce.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 : ''}