angular icon indicating copy to clipboard operation
angular copied to clipboard

[BUG] Text area not loading ; quilljs are getting blocked

Open sreejithswamidas opened this issue 6 years ago • 6 comments

Environment

Please provide as many details as you can:

  • Hosting type
    • [ ] Form.io
    • [x] Local deployment
      • Version: 3.x
  • Formio.js version:3.x
  • Frontend framework: Angular
  • Browser: Chrome
  • Browser version: 60+

Steps to Reproduce

  1. If the text area is WYSIWYG Editor formio is calling quilljs api s to get the js and css files
  2. In some of the networks those calls are getting blocked.

Expected behavior

Observed behavior

Example

  1. If the text area is WYSIWYG Editor formio is calling quilljs api s to get the js and css files
  2. In some of the networks those calls are getting blocked.

sreejithswamidas avatar Sep 06 '19 10:09 sreejithswamidas

@sreejithswamidas, can you confirm the full URLs of those requested files? e.g. https://cdn.form.io/quill/1.3.6/quill.min.js

aiwebb avatar Sep 06 '19 14:09 aiwebb

@aiwebb https://cdn.form.io/quill/1.3.6/quill.min.js https://cdn.form.io/quill/1.3.6/quill.min.css

sreejithswamidas avatar Sep 06 '19 14:09 sreejithswamidas

Are you using CSP or anything that could be blocking those urls? You can also include quill source code manually on the page and it will skip loading from those urls.

randallknutson avatar Sep 06 '19 20:09 randallknutson

@randallknutson Where should I add these source files because these apis are getting called from angular-formio node module

sreejithswamidas avatar Sep 07 '19 03:09 sreejithswamidas

You can just import the Quill library into your application, and then use the following in your main module file.

import 'quill';

This should force your application to include the Global quill object which will skip the dynamic loading via URL.

travist avatar Sep 09 '19 14:09 travist

How i can get access to the Quill editor from angular component?

shahzadiiui2015 avatar Dec 15 '21 11:12 shahzadiiui2015

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!

Sidiro23 avatar Feb 07 '24 14:02 Sidiro23