-
Notifications
You must be signed in to change notification settings - Fork 2
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
error when scrivito is not loaded #4
Comments
Problem here is, that this scrivito code is for the widget reload after changing content. Without the page has to be reloaded. So it would lead to a code like:
This doubled code will be in every widget gem using js and can not be bind automatically to dynamic dom elements. |
Sorry, but I don't understand this? In my first thinking |
@marcelgo You can safely include |
@cedrics thank you and I agree that the current version of the file is very short, but this does not have to be the case in the future. In generell I don’t want to do something because it’s safely possible. I want to do things that make sense. And it does not make sense to include files that are not used. Solving the issue with adding a |
Any news on this issue? |
@gertimon we still have the iframe use case requiring this to be solved. When you have the case, that the customer wants to include the website as an iframe into another page. Would be great if you could solve this one. Also for the other widgets like the twitter widget. |
When using the widget and having scrivito.js only included for logged in users, this line causes a "scrivito is not defined error":
https://github.com/Scrivito/scrivito_google_maps_widget/blob/master/app/assets/javascripts/scrivito_google_maps_widget/editing.js.coffee#L36
The text was updated successfully, but these errors were encountered: