- 🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺
The patch doesn't seem to work with Ckeditor5, it gave me so much trouble to find out that it was the patch messing up the upgrade to Ckeditor 5.
- 🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺
Seems like I have a bug where I've explicitly set a view mode and it is overriden with the default one.
Replacing this
if ($node->getAttribute('data-view-mode') && isset($this->settings[$bundle])) {
With this
if (!$node->getAttribute('data-view-mode') && isset($this->settings[$bundle])) {
It seems to work, if we have set a specific view mode 'data-view-mode', the patch should not override.