jodit / jodit-react

React wrapper for Jodit
MIT License
354 stars 118 forks source link

missing config.js causing issues #230

Open rainabozhi opened 1 year ago

rainabozhi commented 1 year ago

Jodit Version: jodit-pro-react 1.3.63

Browser: OS: Is React App: ** Typescript project

Code

// load config.js --> not found

Expected behavior: no console nor compiler errors

Actual behavior: due to some missing config.js file that cannot be found, the browser tries to fallback to the index.html file or concatenates the existing scripts with a config.js suffix which also causes errors or invalid character (<) issues

gtsluk commented 3 months ago

any updates on this issue? We're using jodit-pro-react": "4.0.6" and new to jodit-react editor.

xdan commented 3 months ago

Hi, @gtsluk

const config = {
    loadExternalConfig: false
};
<JoditEditor config={config}>