Skip to content

Unexpected Cloudflare calls by jodit.min.js #1330

@miltonh26

Description

@miltonh26

Jodit Version

4.9.16 Pro

Browser

Chrome, Firefox

Operating System

Linux

Is React App?

No

Reproduced on xdsoft.net?

No

Code to reproduce

Both jodit.min.js and jodit.fat.min.js are making unexpected Cloudflare calls from the JS files which have been downloaded and run locally.

Both versions 4.7.6 and 4.9.16 have the same behavior currently.

My code is applied consistently for different pages using Jodit, yet I am seeing inconsistent loading of the Jodit editor. When the editor loads properly and Jodit runs OK it makes Cloudflare calls, as-in:

https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.js
https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css
https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js

When the Cloudflare calls are not successful, Jodit fails and errors out.

It does so silently without any error messages to help track the issue down. The error screenshot I uploaded is the result of Jodit not being properly initialized in my code, resulting in the errors shown.

To be perfectly clear, the application is running the same webapp and Jodit acts differently. Most pages work correctly, but then others don't, with no explanation and the same code.

Image Image

My development machine and production server have been working correctly for months, yet suddenly it has this intermittent error causing Jodit to break.

Expected behavior

Since I pulled down Jodit files down locally, I would not expect Jodit or plugins to make calls outside the application for needed files. They should all be available locally.

Jodit needs to run consistently and be stable, and not make external calls from the locally downloaded and executed files.

Actual behavior

Inconsistent Jodit usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions