silverstripe / cwp

Common Web Platform (CWP) features module. We strongly recommend using it for all new CWP projects. Future features will be delivered here.
https://www.cwp.govt.nz
BSD 3-Clause "New" or "Revised" License
10 stars 27 forks source link

TinyMCE Console error and warning in CMS 5 #330

Closed GuySartorelli closed 1 year ago

GuySartorelli commented 1 year ago

The following error and warning are occurring in CMS 5.0.x-dev with the cwp/cwp module installed:

Failed to load plugin: contextmenu from url /_resources/vendor/silverstripe/admin/client/dist/tinymce/plugins/contextmenu/plugin.min.js

This is because the config in this module still tries to enable a contextmenu plugin, but this is no longer a plugin. It's been part of core since TinyMCE 5.

The following deprecated features are currently enabled and have been removed in TinyMCE 6.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ for more information.

Options:

  • mode

This is because the config in this module still sets a "mode" option, which it should not.

PR