-
Notifications
You must be signed in to change notification settings - Fork 413
Open
Description
Hi!
What would be the best way to trim blank HTML lines? I am currently doing it like that:
const let blankLine = '...'
editor.getHTML()
.replace(new RegExp(`^(${blankLine})+`), '')
.replace(new RegExp(`(${blankLine})+$`), ''))It works, but relies on maintaining blankLine variable in check with default style -- it is not a huge problem, but is easy to miss.
Is it possible to introduce some helpers so that I can get the line back out from Squire itself? If not maybe extending getHTML() function to perform trimming could also work.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels