We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab846e commit d12af1bCopy full SHA for d12af1b
src/angular-froala.js
@@ -117,13 +117,10 @@
117
ngModel.$render()
118
}
119
//https://github.com/froala-labs/froala-editor-js-2/issues/3049
120
- let elementOptions = {}
121
- Object.keys(ctrl.options).forEach(key => {
122
- if (key !== "froalaEditor") {
123
- elementOptions[key] = ctrl.options[key];
124
- }
125
- });
126
- ctrl.froalaEditor = new FroalaEditor(element[0], ctrl.options = elementOptions);
+ if (ctrl.options.froalaEditor) {
+ delete ctrl.options.froalaEditor;
+ }
+ ctrl.froalaEditor = new FroalaEditor(element[0], ctrl.options);
127
128
//assign the froala instance to the options object to make methods available in parent scope
129
if (scope.froalaOptions) {
0 commit comments