The RTE in EE6 is built on CKeditor 5 which dropped the view source option . This has a caused a lot of controversy in the CK editor world as you can see on this thread https://github.com/ckeditor/ckeditor5/issues/592 so its not an option for the RTE editor. More information here too https://expressionengine.com/forums/topic/252969/what-happened-to-the-view-code-button-in-the-rte
hey guys, i need the source view as well…. i just did a quick test by using the ckeditor online build tool and included General HTML Support and Source Editing (new) plugins, swapped the ckeditor.js in themes/ee/rte/scripts with the new build, enabled the view source button in RteHelper.php and it’s working, I can see view source now and make changes, save them etc… the only problem is your custom “filemanager” plugin is obviously not loading. Any chance I can get the source of your CKEditor build and the filemanager plugin so I can compile myself? cheers, M
i made it to work by replacing the current rte add-on with rte add-on from 6.dev branch on github + some quick mods. It’s probably not ideal but works fine .inc access to filemanager.
I basically replaced the current addon with the one from 6.dev (ExpressionEngine/system/ee/ExpressionEngine/Addons/rte)
added the theme scripts from 6.dev branch (they go in different location) themes/ee/assets/javascript/compressed/fields/rte
updated the exp_rte_toolsets table by adding toolset_type column (as this new version support both ckeditor and redactor, see screenshot)
i use this inside a grid field, and wanted to use redactor so updated col_settings for the specific field to use toolset_id=4
at this point it worked but the filemanager was throwing errors (filemanager wasn’t initialized).
I did some digging and copied a piece of code from CkeditorService.php (under File Browser Config comment) to the RedactorService.php. This added some required js to initialise the filemanager.
That’s it. Hope this helps.
ps: i’ve used it without any issues so far.
The EE6 rich text editor may have deprecated the source code view feature as part of its simplification or redesign. This could be a move to streamline the editor and reduce potential issues that arise from direct HTML editing. toca life world
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.