Skip to content

Commit 57c27a3

Browse files
authored
Merge pull request #171 from Gid733/master
Updated separator for pell editor
2 parents f4bd76f + 0d08567 commit 57c27a3

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import * as pell from './pell';
66
@Component({
77
selector: 'pell-editor',
88
templateUrl: './pell.component.html',
9-
encapsulation: ViewEncapsulation.None
9+
encapsulation: ViewEncapsulation.None,
10+
styles: [`div p {
11+
margin: 0;
12+
padding: 0;
13+
}`]
1014
})
1115
export class PellComponent implements OnInit, AfterViewInit, OnChanges {
1216
@Input() actions: Array<Object> = [];
@@ -48,7 +52,7 @@ export class PellComponent implements OnInit, AfterViewInit, OnChanges {
4852
this.html = html;
4953
this.valueChange.emit(this.html);
5054
},
51-
defaultParagraphSeparator: 'br',
55+
defaultParagraphSeparator: 'p',
5256
styleWithCSS: false,
5357
actions: [
5458
'bold',

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import * as pell from './pell-pn';
66
@Component({
77
selector: 'pell-pn-editor',
88
templateUrl: './pell-pn.component.html',
9-
encapsulation: ViewEncapsulation.None
9+
encapsulation: ViewEncapsulation.None,
10+
styles: [`div p {
11+
margin: 0;
12+
padding: 0;
13+
}`]
1014
})
1115
export class PellPnComponent implements OnInit, AfterViewInit, OnChanges {
1216
@Input() actions: Array<Object> = [];
@@ -48,7 +52,7 @@ export class PellPnComponent implements OnInit, AfterViewInit, OnChanges {
4852
this.html = html;
4953
this.valueChange.emit(this.html);
5054
},
51-
defaultParagraphSeparator: 'br',
55+
defaultParagraphSeparator: 'p',
5256
styleWithCSS: false,
5357
actions: [
5458
'bold',

0 commit comments

Comments
 (0)