You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.
this may be related to using jonas's markdown editor, but $(this).parent().find("textarea") does not find a textarea. changing this line to $(this).closest("div").find("textarea") solves the issue, but may not be relevant to other extensions which modify the textarea.
The text was updated successfully, but these errors were encountered:
Good catch. Looks like Markdown Editor moves the textarea element outside the label container, so the textarea and the preview link no longer share the same parent.
I changed it to $(this).closest('div.field').find('textarea'), which hopefully future-proofs it against any extensions that wrap the label or textarea in extra divs. Also, thanks for the recommendation—I haven’t seen .closest() before!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
this may be related to using jonas's markdown editor, but
$(this).parent().find("textarea")
does not find a textarea. changing this line to$(this).closest("div").find("textarea")
solves the issue, but may not be relevant to other extensions which modify the textarea.The text was updated successfully, but these errors were encountered: