CKEditor/ Rich Text Editor: "Source Editing Area" not working

Permalink
Hello

On version 8 (8.1 as well as 8.3.2) the "Source Editing Area" setting: Sytem & Settings > Basics > Rich Text Editor has no effect. I can however edit the the Source - but only in the Dialog-mode.

Does this Setting actually work?
Do I have to change some other Setting or Configuration?


Why this is important to me:
Some ckeditor plugins do not work with "Source Dialog". In my case, I need my users to edit sourcecode and I want to keep the selection if the User selects something and switches to Source.

The textselectionAdd-on would do the Trick (https://ckeditor.com/cke4/addon/textselection), but it will only work in source Area - not within the Source Dialog. Since I work with the "Content Editor Pluginator" there should not be an issue of installing the textselection-package wrong.

Thanks a lot!

1 Attachment

 
mnakalay replied on at Permalink Reply
mnakalay
If memory serves that setting only works for CKeditor used in the front end but not in edit mode. It also works in the back-end. So for instance, if you add a form block which has a Text area input type set to HTML, it will use CKeditor and the source view will be inline instead of the dialog.

But if you use CKeditor in a block editor interface, for instance, it will be using the dialog instead.

I am not 100% sure of all the possibilities but it's more or less that.
adrianmichel replied on at Permalink Reply
Hm. If I understood you correct: The Editor works only in "Source Dialog" in Editmode.
So there is no way in keeping the selection if you change to Sourcecode - other than programming a plugin.
Sad Thing.

But thank you for your quick anser!
adrianmichel replied on at Permalink Reply
Another plugin and "Rich Text Editor" setting that does not work in my 8.3.2. ist the
https://ckeditor.com/cke4/addon/elementspath...

I found a note on there page:
"Elements Path is not available for Floating UI which is the default user interface of inline editor." Do you have an Idea what "Inline Editing" means?

could something be wrong with my installation or is this not working in Edit mode either?
mnakalay replied on at Permalink Best Answer Reply
mnakalay
If you look inside concrete\src\Editor\CkeditorEditor.php you will see that there are 2 ways of outputing the editor one is by using the function outputStandardEditor() and the other is outputPageInlineEditor()

The second function, which is used by the content block, ignores the setting and always uses the dialog source editor. But it does add both "save" and "cancel" buttons to the editor.

The other one respects the setting but doesn't include the save and cancel buttons.

So as you can see the content block uses the inline editor.

I actually have a small tutorial that comes with CKeditor Pluginator that addresses specifically the issue with the Text Selection plugin and explains that sometimes some plugins will simply not work with the way Concrete5 does things:https://www.youtube.com/watch?v=zDlIC5D5HF8...

Elements path is also included with C5 and also doesn't work with the content block, unfortunately.
adrianmichel replied on at Permalink Reply
Thank you for your answer
I see. Bad news. This seems not to change any time soon.

Hm. So chances are, that even paid plugins like thes will also not work:
https://js.plus/products/html-insert... orhttps://js.plus/products/edit-tag...

However: Thanks you so much again (Competent as always!)
Adrian
mnakalay replied on at Permalink Reply
mnakalay
I don't see anything in their doc that would prevent those 2 plugins from working but of course, the only way to be sure would be to buy them and try.

Or you could contact the developer and ask if the plugins would work in the inline editor mode.

I was thinking that there was an alternative to what you're trying to do.

The only advantage of using the content block is that it allows you to have inline editing directly on the page.

But you could also create a simple block that would work just like the HTML block with a popup edit screen. This would allow you to use the standard editor in the popup edit screen and then output the content to the page. You would lose inline editing and that's all.
mnakalay replied on at Permalink Reply 1 Attachment
mnakalay
I haven't found a solution for source area yet but I was able to modify elements path to work in both mode.
I'm attaching the file here. You have to first uncheck elements path from C5 dashboard (dashboard/system/basics/editor)

And then install the plugin I am attaching with CKEditor plugin installer.

When in floating mode (like for the content block), the path will appear in the toolbar with a blue outline so it's easy to spot.
adrianmichel replied on at Permalink Reply
This is working great!
Thanks a lot!

Cheers from Switzerland
Adrian
mnakalay replied on at Permalink Reply
mnakalay
My pleasure