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

Feature/no inline scripts #9

Merged
merged 5 commits into from
Mar 5, 2020
Merged

Feature/no inline scripts #9

merged 5 commits into from
Mar 5, 2020

Conversation

drnlm
Copy link
Member

@drnlm drnlm commented Mar 3, 2020

stefanor and others added 5 commits March 3, 2020 15:19
So that we will function in django admin, when JQUERY_URL is set to None
(because the rest of the site provides a jQuery).
Rather than using inline scripts, just apply some attributes to the
widget, so we can locate it later in the DOM.

This means jQuery doesn't have to be loaded before the MarkItUpWidget or
markitup_editor tag is rendered on a page, all scripts can be loaded in
the document foot.

Fixes: #25
Use multiple TestCases for the widget + template tag variations rather
than auto_preview permutations.
@drnlm drnlm merged commit 38e06f2 into master Mar 5, 2020
@drnlm drnlm deleted the feature/no-inline-scripts branch March 5, 2020 19:51
stefanor added a commit to CTPUG/wafer that referenced this pull request Mar 26, 2020
Now that django-markitup doesn't use inline JS any more (since
CTPUG/django-markitup#9, in 3.7.0)
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

Successfully merging this pull request may close these issues.

2 participants