header icon indicating copy to clipboard operation
header copied to clipboard

Fix Header Tool not supporting line breaks

Open mrspence opened this issue 3 years ago • 0 comments

What's the issue?

Currently the Header Tool does not support line breaks like other Tools do. Normally a user can press Shift + Enter which adds a line break. However at the moment this tool strips line breaks out.

This pull request fixes:

Solution

This pull request adds a config parameter allowLineBreaks: {Boolean} that allows the developer to enable line breaks should they need.

config: {
    allowLineBreaks: true, // default: false
}

By default, line breaks are not enabled, as per the current status quo.

mrspence avatar Dec 17 '21 23:12 mrspence