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

Lazyload: Images fail to load inside CKEditor #6

Open
macburgee1 opened this issue Aug 20, 2021 · 0 comments
Open

Lazyload: Images fail to load inside CKEditor #6

macburgee1 opened this issue Aug 20, 2021 · 0 comments

Comments

@macburgee1
Copy link
Contributor

macburgee1 commented Aug 20, 2021

When using DCF Lazyload for inline images (those placed with Media Library in CKEditor), the images fail to render because the lazyload JS is not loaded on the node edit page. We may need to load the dcf-lazyLoad.js separately, although I'm not sure if the JS file can be loaded on its own. We may need to write some custom JS to facilitate. This JS will likely be exposed as a library.

https://github.com/digitalcampusframework/dcf/blob/2.0/js/dcf-lazyLoad.js

We can load that library by creating a Filter. All the filter would do is attach the library per Attaching a library in a filter plugin.

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