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!
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!
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!
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!
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?
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?
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.
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.
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
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
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.
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.
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.
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.
This is working great!
Thanks a lot!
Cheers from Switzerland
Adrian
Thanks a lot!
Cheers from Switzerland
Adrian
My pleasure
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.