ngFormBuilder icon indicating copy to clipboard operation
ngFormBuilder copied to clipboard

ckeditor error

Open dim2k2006 opened this issue 7 years ago • 4 comments

I've got an error after enabling «Enable WYWIWYG» checkbox in text area component.

-2017-05-18-17 14 13

How can I fix this?

dim2k2006 avatar May 18 '17 14:05 dim2k2006

I've also got this problem, can we expect a fix for this anytime soon?

dontfeedthecode avatar Jul 19 '17 04:07 dontfeedthecode

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.

edwinanciani avatar Jul 19 '17 05:07 edwinanciani

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:

  1. if you turn on, and click "Save", textarea field on form dont transform to ckeditor, before you dont reload page.
  2. 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?

ahramcov avatar Aug 16 '17 05:08 ahramcov

How I have solved the problem:

  1. As @edwinanciani advised I added full Ckeditor library.
  2. As @ahramcov advised I added ng-model="component.content" here: 1
  3. I have also added this property (content) to the settings object in my component: 2

dim2k2006 avatar Sep 29 '17 14:09 dim2k2006