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

Uncaught TypeError: rangy__WEBPACK_IMPORTED_MODULE_4__.resoreSelection is not a function #479

Open
sorcamarian opened this issue Jan 5, 2023 · 1 comment

Comments

@sorcamarian
Copy link

I have installed rangy in a Angular2+ application.
It appears that the function "rangy.resoreSelection" is not found.

I've also installed the types: https://www.npmjs.com/package/@types/rangy

https://github.com/timdown/rangy/wiki/Selection-Save-Restore-Module

import * as rangy from 'rangy';

@sorcamarian
Copy link
Author

I had to import the other file

import rangy from 'rangy';
import 'rangy/lib/rangy-selectionsaverestore.js';

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