Looking to create a TinyMCE React package, I've been using
import { Editor } from '@tinymce/tinymce-react';
However, I'm encountering this message -
https://i.sstatic.net/j4Cfw.png
To remove the message, typically you would add the API key to the .js.
in your <script>
tag in your html. But since I am importing the package, there is no script for me to insert the API key in.
Should I use something like
mce-notification-inner {display:none!important;}
or is there an alternative method to eliminate the message?
I also aim to experiment with https://github.com/instructure-react/react-tinymce but I am unsure how to execute the script. I attempted the following:
componentWillMount () {
const script = document.createElement("script");
script.src = "//tinymce.cachefly.net/4.2/tinymce.min.js";
// script.async = true;
document.body.appendChild(script);
}
but it was unsuccessful