Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileBrowserPro is not a constructor #1195

Open
HrBagge opened this issue Nov 19, 2024 · 0 comments
Open

FileBrowserPro is not a constructor #1195

HrBagge opened this issue Nov 19, 2024 · 0 comments

Comments

@HrBagge
Copy link

HrBagge commented Nov 19, 2024

Jodit Version: 4.2.41 Pro

Browser: Chrome
OS: Windows
Is React App: False
Reproduced on xdsoft.net: False

Code

<script src="/lib/jodit-pro/es2021.en/jodit.min.js"></script> <script> const browser = new Jodit.modules.FileBrowserPro({ ** uploader + ajax settings ** }); </script>
// A *self-contained* demonstration of the problem follows...

Expected behavior:
No error, load of editor

Actual behavior:
Uncaught TypeError: Jodit.modules.FileBrowserPro is not a constructor
at filename:71:19

Additional info

  • jodit.min.js was loaded succesfully.
  • Testet with both download of files from licensemanager and from npm
  • when filebrowser is opened from the editor, it seems to be the 'out of the box' version
  • Code is copy/paste from https://xdsoft.net/jodit/examples/module/how-to-use-filebrowser-without-jodit.html
  • If Jodit.modules.FileBrowserPro is changed to Jodit.modules.FileBrowser it works - but with the 'out-of-the-box' version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant