Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
ckeditor.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2017 at 19:10 UTC
Updated:
27 Nov 2017 at 19:59 UTC
Jump to comment: Most recent
Comments
Comment #2
cilefen commentedCould you explain a little more what this means exactly and what it would be used for?
Is this a feature of CKeditor itself?
Comment #3
DrupalRanger commentedA drupal ckeditor feature itself..
When you click the Source button on the toolbar of ckeditor it shows the source behind the formatting of whatever is in the display window of ckeditor. What I understand from the documentation is that the source code is filtered for whatever settings you designate, like Correct faulty HTML when saved.
In that filtering process, it also filters any formatting you may have placed in your source, like white spaces, to make the html more readable when editing the source. I want to preserve this formatting. In 8.4 it was that you could not add tabs but could add each element to a separate line with "enter". In the 8.4.1 from today I notice that the source is now minified when you open source, which is prob best practice for file size.
Use Case - Sometimes a client or user may want to be able to edit the actual html elements on a production site to add classes or make small tweaks to the structure of the html elements, or in my case the paragraph of paragraphs module. It is certainly not the best idea but there are times when it becomes necessary. When the source is not structured it makes it difficult to find the spot where you want to make the edit. A good example of this in the wild would be with the bootstrap theme to add "muted" a background color class or "mt-3" which is a spacing class.
I am not suggesting this be a default setting as this is probably a rare use case, but it would be nice to have a toggle for each ckeditor type under the enabled filters section. Something like Formatted Source Code, so not to be confused with the ability to add tabs to the actual structure of a list or something like that.
There could be solution out there currently that I am not aware of.
Comment #4
cilefen commentedAre you reporting a bug then? #2908864: Update CKEditor library to 4.7.3
Comment #5
cilefen commentedComment #6
cilefen commentedhttps://www.drupal.org/node/2908864#comment-12326395
Comment #7
DrupalRanger commentedI don't believe this is a bug. I think it is best practice to minify the source output of ckeditor. However, I would like a feature that overrides that function so source formatting can be preserved when editing the source directly.
Comment #8
cilefen commentedA behavior changed unexpectedly.
Comment #9
cilefen commentedPlease try Drupal 8.4.2 and report findings.
Comment #10
DrupalRanger commented8.4.2 Works as expected as source code is not minified.
Orginal Feature Request still open for Formatting capabilities of the source code.
Thanks for all the hard work on this module. Much easier than D7!
Comment #11
cilefen commented@DrupalRanger: I am marking this a fixed bug, so as not to confuse everyone. Please open a new feature request. Please add details of your #3 comment to the issue summary of that issue. Thank you!
Comment #12
wim leers