mirror of
https://github.com/docusealco/docuseal
synced 2026-11-15 08:02:33 -05:00
use br for email content
This commit is contained in:
1 parent
845782a69c
commit
e6e640328b
1 file changed
+8
-2
@@ -208,7 +208,13 @@ export default actionable(targetable(class extends HTMLElement {
|
|||||||
Text,
|
Text,
|
||||||
Bold,
|
Bold,
|
||||||
Italic,
|
Italic,
|
||||||
HardBreak,
|
HardBreak.extend({
|
||||||
|
addKeyboardShortcuts () {
|
||||||
|
return {
|
||||||
|
Enter: () => this.editor.commands.setHardBreak()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
UndoRedo,
|
UndoRedo,
|
||||||
Link.extend({
|
Link.extend({
|
||||||
inclusive: true,
|
inclusive: true,
|
||||||
@@ -230,7 +236,7 @@ export default actionable(targetable(class extends HTMLElement {
|
|||||||
Underline,
|
Underline,
|
||||||
VariableHighlight
|
VariableHighlight
|
||||||
],
|
],
|
||||||
content: this.textarea.value || '',
|
content: (this.textarea.value || '').trim().replace(/ *\n/g, '<br>'),
|
||||||
contentType: 'markdown',
|
contentType: 'markdown',
|
||||||
editorProps: {
|
editorProps: {
|
||||||
attributes: {
|
attributes: {
|
||||||
|
|||||||
Reference in new issue
Block a user