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

Compatibility issue with ActiveXObject in Angular 16: Need for scripthost library #1456

Open
MrZhenShen opened this issue Oct 28, 2024 · 0 comments

Comments

@MrZhenShen
Copy link

Is your feature request related to a problem? Please describe.
In my Angular 16 project, I encounter an error due to ActiveXObject not being declared, which requires me to add the scripthost library to tsconfig.json to resolve this issue. This step seems unnecessary and is likely due to the way certain features are handled within SunEditor. It would be ideal if the editor could work without requiring this additional library configuration.

Describe the solution you'd like
It would be beneficial if SunEditor could handle the ActiveXObject usage internally or otherwise avoid dependencies that require Angular developers to modify their tsconfig.json with external libraries such as scripthost.

Describe alternatives you've considered
An alternative is to add scripthost in the tsconfig.json file, but this solution is not ideal since it introduces dependencies that seem unrelated to the project itself.

Additional context
This issue might be specific to how SunEditor manages browser objects or types within TypeScript. This adjustment would improve compatibility for Angular 16 users and simplify configuration.

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