We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1ce2ba commit 23dc20fCopy full SHA for 23dc20f
angular-draft-js/draft-js.component.ts
@@ -17,7 +17,12 @@ import { ReactComponentWrapper } from './react.component';
17
18
export class DraftBase {
19
@Input() editorClass: React.Component;
20
- @Input() editorProps: any = {}; // TODO: Type props?
+
21
+ // TODO: Type props?
22
+ @Input() editorProps: any = {
23
+ editorState: EditorState.createEmpty(),
24
+ };
25
26
@Input()
27
set key(key: string) {
28
this.editorProps = Object.assign({}, this.editorProps, { key: key });
0 commit comments