From dafd3354fc784856744dd305faa299f85c9d2dd0 Mon Sep 17 00:00:00 2001 From: Ashar Fuadi Date: Fri, 29 Dec 2023 21:26:50 +0700 Subject: [PATCH] chore(client): Fix tinymce import specificity --- judgels-client/.prettierrc.json | 1 + .../src/components/forms/FormRichTextArea/TinyMCETextArea.jsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/judgels-client/.prettierrc.json b/judgels-client/.prettierrc.json index a49cc9a30..8ea907359 100644 --- a/judgels-client/.prettierrc.json +++ b/judgels-client/.prettierrc.json @@ -1,6 +1,7 @@ { "arrowParens": "avoid", "importOrder": [ + "^tinymce/(plugins|themes)", "^ace-", "^react-syntax-highlighter/", "^(?!.*(Actions|.s?css|/routes/App)$)[./]", diff --git a/judgels-client/src/components/forms/FormRichTextArea/TinyMCETextArea.jsx b/judgels-client/src/components/forms/FormRichTextArea/TinyMCETextArea.jsx index cd5c73a2d..d9a42726b 100644 --- a/judgels-client/src/components/forms/FormRichTextArea/TinyMCETextArea.jsx +++ b/judgels-client/src/components/forms/FormRichTextArea/TinyMCETextArea.jsx @@ -1,11 +1,12 @@ import { PureComponent } from 'react'; +import tinymce from 'tinymce/tinymce'; + import 'tinymce/plugins/code'; import 'tinymce/plugins/image'; import 'tinymce/plugins/link'; import 'tinymce/plugins/lists'; import 'tinymce/plugins/paste'; import 'tinymce/themes/modern/theme'; -import tinymce from 'tinymce/tinymce'; export class TinyMCETextArea extends PureComponent { componentDidMount() {