diff --git a/src/app/ngx-editor/ngx-editor.component.html b/src/app/ngx-editor/ngx-editor.component.html index fba4cd3e..f21d4e7a 100644 --- a/src/app/ngx-editor/ngx-editor.component.html +++ b/src/app/ngx-editor/ngx-editor.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/ngx-editor/ngx-editor.component.ts b/src/app/ngx-editor/ngx-editor.component.ts index f6265986..b2c6e68f 100644 --- a/src/app/ngx-editor/ngx-editor.component.ts +++ b/src/app/ngx-editor/ngx-editor.component.ts @@ -21,6 +21,8 @@ export class NgxEditorComponent implements OnInit { @Input() translate: string; @Input() height: string; @Input() minHeight: string; + @Input() width: string; + @Input() minWidth: string; @Input() toolbar: any; /* diff --git a/src/app/ngx-editor/ngx-editor.defaults.ts b/src/app/ngx-editor/ngx-editor.defaults.ts index de066b23..c7e61fda 100644 --- a/src/app/ngx-editor/ngx-editor.defaults.ts +++ b/src/app/ngx-editor/ngx-editor.defaults.ts @@ -3,6 +3,8 @@ export const ngxEditorConfig = { spellcheck: true, height: 'auto', minHeight: '0', + width: 'auto', + minWidth: '0', translate: 'yes', placeholder: 'Enter text here...', toolbar: [