ngFormBuilder
ngFormBuilder copied to clipboard
ckeditor error
I've got an error after enabling «Enable WYWIWYG» checkbox in text area component.
How can I fix this?
I've also got this problem, can we expect a fix for this anytime soon?
Hi guys, it will be fixed soon. You can use the full Ckeditor library. https://cdn.ckeditor.com/4.5.11/full/ckeditor.js And that fixed it.
Hi guys. Problem in this line: https://github.com/formio/ngFormBuilder/blob/master/src/components/components.js#L30 because https://github.com/lemonde/angular-ckeditor/blob/master/angular-ckeditor.js#L27
May be just set ng-model="fakeModel" in problem line?
But "Enable WYWIWYG" have another two problems:
- if you turn on, and click "Save", textarea field on form dont transform to ckeditor, before you dont reload page.
- when textarea render on real form, it use another WYWIWYG editor - quilljs. But in builder you can config only ckeditor settings. Proof: https://github.com/formio/formio.js/blob/master/src/components/textarea/TextArea.js#L29
WHYYYY?! How do I use the same editor in both places?
How I have solved the problem:
- As @edwinanciani advised I added full Ckeditor library.
- As @ahramcov advised I added ng-model="component.content" here:
- I have also added this property (content) to the settings object in my component: