We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Source Code View

How Do I?

The Design Core's avatar
The Design Core
359 posts
4 years ago
The Design Core's avatar The Design Core

What happened to the source code view in the rich text editor in EE6?

Am I missing something?

Thanks.

       
Ryan Kelly's avatar
Ryan Kelly
13 posts
4 years ago
Ryan Kelly's avatar Ryan Kelly

I’ve noticed this has gone as well. Really need this back!

? 1
       
Ryde's avatar
Ryde
2 posts
4 years ago
Ryde's avatar Ryde

Same here.

       
aquicksharp's avatar
aquicksharp
28 posts
4 years ago
aquicksharp's avatar aquicksharp

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

? 1
       
The Design Core's avatar
The Design Core
359 posts
4 years ago
The Design Core's avatar The Design Core

Bummer. Thanks for the info.

       
de-construct's avatar
de-construct
4 posts
4 years ago
de-construct's avatar de-construct

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

       
Design By Newconcept's avatar
Design By Newconcept
7 posts
4 years ago
Design By Newconcept's avatar Design By Newconcept

Up, any solutions?

       
de-construct's avatar
de-construct
4 posts
4 years ago
de-construct's avatar de-construct

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.

  1. I basically replaced the current addon with the one from 6.dev (ExpressionEngine/system/ee/ExpressionEngine/Addons/rte)

  2. added the theme scripts from 6.dev branch (they go in different location) themes/ee/assets/javascript/compressed/fields/rte

  3. updated the exp_rte_toolsets table by adding toolset_type column (as this new version support both ckeditor and redactor, see screenshot)

  4. 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.

       
celinedion's avatar
celinedion
5 posts
2 years ago
celinedion's avatar celinedion

Thanks de-construct, I followed the instructions to replace the current rte add-on with the rte add-on from the 6.dev branch on github + some quick mods. While not ideal, it works quite well.

       
Tony Adams's avatar
Tony Adams
4 posts
2 years ago
Tony Adams's avatar Tony Adams

The source code view in the rich text editor in EE6 has been taken away. Instead, you can add custom HTML code to your content by using the “Code” block in Redactor. io games

       
JavierCowan's avatar
JavierCowan
9 posts
one year ago
JavierCowan's avatar JavierCowan

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.