Do you have the extra TinyMCE Rich Text Editor installed on your system?
When I test your code, I get a fatal error when the extra TinyMCE Rich Text Editor is installed.
But everything looks ok, if I uninstall the extra TinyMCE Rich Text Editor.
The problem seems to be this line in the code:
As the comment above this line states, that it’s “probably unnecessary” to invoke the event, it’s probably ok to just comment out the line.
Yes Newspublisher loads its own version of the TinyMCE JS library, but when the extra “TinyMCE Rich Text Editor” is installed and Newspublisher invokes the event OnRichTextEditorInit then I get the following error.
Fatal error: Uncaught Error: Call to a member function addJavascript() on null in .../core/components/tinymcerte/src/Plugins/Events/OnRichTextEditorInit.php:53
So if commenting out $this->modx->invokeEvent('OnRichTextEditorInit', $fields); doesn’t work, then maybe check the server error log (not the error log from MODX) to see if there gets another error logged.
I also tried on a standard stock install
still cant get it to work just blank screen
only error I get in both installs are
[2023-08-10 15:37:31] (ERROR @ /…/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 666) Could not load class: modAction from mysql.modaction
[2023-08-10 15:37:31] (ERROR @ /…/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 786) modAction::load() is not a valid static method.
maybe its my server or db?
does this work with someone else, RTE on newspublisher?
if installed and selected as editor for the manager under System Settings → Editor the newspublisher does not work on front end…
if they are not installed or not selected as editor in “System Settings → Editor” it works in the frontend
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.