Skip to content
Advertisement

Duplicate CKEditor widget appears as disabled

I have a list of concept forms in which concepts can be added by clicking on a button. The problem is that when I click and duplicate the concept form there is a form field that works with ckeditor, and the new duplicate appears as disabled and cannot be written to.

I take the form, copy it and try to initialize it but appears the error:

TypeError: $element.ckeditor is not a function

base.html:

JavaScript

functions.js:

JavaScript

Advertisement

Answer

From the copy I select the element that corresponds to the ckeditor widget and I re-initialize it with the desired configuration, finally the copied content is deleted

functions.js:

JavaScript
Advertisement