You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new instance of the Formio builder or when rendering a form, if I render a monaco editor (through the monaco-editor/react package) all components that need an external library do not work.
for example, if a "date time" component is included in the form, it fails since there is an issue with loading file-pickr or when a text-area has the editor setting as quill or ckeditor.
Version/Branch
latest version: 5.0.1
To Reproduce
Steps to reproduce the behavior:
I have included a small react app in attachement, so you can download it npm install and npm run dev to see the issue
create a form with a text area component of type ckeditor
Expected behavior
The form with the textarea of type ckeditor should appear.
Screenshots
Here's the result:
The ckeditor is missing
Here's the code used to create this page (included in the attachment)
Additional context
If I delay the rendering of the monaco editor to be after the form has been built, the issue is not present, so it looks like monaco editor does something that has an impact on
In our app we use monaco editor a lot which mean that If a user opens any page with monaco editor before he visits a page with a formio form or the formio builder, it causes problem, for now our only solution is to pre-load all the library needed by formio that should only be loaded when needed.
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a new instance of the Formio builder or when rendering a form, if I render a monaco editor (through the monaco-editor/react package) all components that need an external library do not work.
for example, if a "date time" component is included in the form, it fails since there is an issue with loading file-pickr or when a text-area has the editor setting as quill or ckeditor.
Version/Branch
latest version: 5.0.1
To Reproduce
Steps to reproduce the behavior:
I have included a small react app in attachement, so you can download it
npm install
andnpm run dev
to see the issuepoc-formio-monaco.zip
Expected behavior
The form with the textarea of type ckeditor should appear.
Screenshots
Here's the result:
The ckeditor is missing
Here's the code used to create this page (included in the attachment)
Additional context
If I delay the rendering of the monaco editor to be after the form has been built, the issue is not present, so it looks like monaco editor does something that has an impact on
In our app we use monaco editor a lot which mean that If a user opens any page with monaco editor before he visits a page with a formio form or the formio builder, it causes problem, for now our only solution is to pre-load all the library needed by formio that should only be loaded when needed.
The text was updated successfully, but these errors were encountered: