Skip to content

Commit 7eedd12

Browse files
committed
Pell html editor fixes
1 parent c707c6f commit 7eedd12

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

eform-client/src/app/common/modules/eform-imported/pell/pell.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export class PellComponent implements OnInit, AfterViewInit, OnChanges {
4848
this.html = html;
4949
this.valueChange.emit(this.html);
5050
},
51-
styleWithCSS: true,
51+
defaultParagraphSeparator: 'p',
52+
styleWithCSS: false,
5253
actions: [
5354
'bold',
5455
'underline',

eform-client/src/app/common/modules/eform-imported/pell/pell.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ export const init = settings => {
6666
actionbar.appendChild(button);
6767
});
6868

69+
if (settings.defaultParagraphSeparator) exec('defaultParagraphSeparator', settings.defaultParagraphSeparator)
6970
if (settings.styleWithCSS) { exec('styleWithCSS'); }
7071

72+
7173
return settings.element;
7274
};
7375

eform-client/src/app/plugins/modules/shared/components/text-editor-pn/pell-pn.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ export class PellPnComponent implements OnInit, AfterViewInit, OnChanges {
4848
this.html = html;
4949
this.valueChange.emit(this.html);
5050
},
51-
styleWithCSS: true,
51+
defaultParagraphSeparator: 'p',
52+
styleWithCSS: false,
5253
actions: [
5354
'bold',
5455
'underline',

eform-client/src/app/plugins/modules/shared/components/text-editor-pn/pell-pn.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ export const init = settings => {
6666
actionbar.appendChild(button);
6767
});
6868

69+
if (settings.defaultParagraphSeparator) exec('defaultParagraphSeparator', settings.defaultParagraphSeparator)
6970
if (settings.styleWithCSS) { exec('styleWithCSS'); }
7071

72+
7173
return settings.element;
7274
};
7375

0 commit comments

Comments
 (0)