garyhodgson/tinymce-renderer-plugin — pull request #36 by spudbean (2012-04-10 06:40:36+00:00)
Title: Compatibility fixes for JIRA 5.0 (5.0.4)

There is a bug in JIRA 5.0 ([JRA-27826](https://jira.atlassian.com/browse/JRA-27826)) that consumes arrows/space/pageup/pagedown for tinymce. (The code in question avoids inputs/textareas/etc, but it does not yet avoid contentEditable elements like tinymce.)

This patch contains a couple of changes that smooth out the last few wrinkles in 5.0 compatibility.
# It removes the code that attempted to fix the spacebar/arrowkey issue.
# It uses AJS.contextPath() to generate better urls to css resources (I was getting a 404 for the theme content.css for example).
# It uses JIRA.Events.NEW_CONTENT_ADDED instead of dialogContentReady (for future-proofing).

**N.B.** These changes still require (the upcoming) JIRA 5.0.4 to work