Opened 8 years ago
Closed 8 years ago
#39437 closed enhancement (fixed)
TinyMCE: better way to remove spaces from empty paragraphs
Reported by: | azaozz | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | has-patch |
Focuses: | Cc: |
Attachments (1)
Change History (6)
#2
@
8 years ago
Looks good to me. Just not sure why we check for the length to be 10, it seems kind of random. We shouldn't unnecessarily check long strings of course, but still. If we are only inserting
, maybe we should only check for that?
Note: See
TracTickets for help on using
tickets.
In 39437.patch: remove empty spaces from paragraphs in the DOM instead of searching through the source HTML with regex.