-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add live preview field #76
Comments
I really like this idea, but I wasn't yet able to find any OpenSource JavaScript renderer for JIRA markdown, only this: https://github.com/tarleb/jira-wiki-markup I also found something called "Twixi", which seems to be the name of the comment / text field renderer JIRA uses |
If all else fails, it would already be helpful if the preview is just the raw text of the message. |
Jira has a REST API endpoint for converting the markup to HTML, see this answer, and that seems to work fine (even without authentication). The only issue is that the CSS rules from Mojira are missing. So maybe we could either do:
The Jira CSS files don't seem to have any deterministic URLs, Not sure if that would be a good approach, I am not so familiar with HTML and CSS. What do you think? |
A correctly formatted preview would be nice if it could be made to work. |
Have created a proof of concept for this in branch
Feedback regarding any of these points is appreciated! To test the changes:
Though maybe this is overkill and as mentioned by Jack a simple textarea would suffice as well... |
It would be very convenient if the application would show a preview field upon selection of a message. This way you can verify that you selected the intended message before you copy it, so that if you're a new helper or a forgetful one, you don't need to paste the message elsewhere before you know what message you're dealing with.
Additionally, if the message requires additional parameters, upon filling in any information for those, the preview field should automatically update and show the changes to the message with this information already included, without clicking any additional button. This way you can also instantly see what the extra information you fill in does to the message.
This would make the application more intuitively designed and slightly more convenient to use.
I imagine this preview field being a textarea that is javascript controlled. If it is left as editable, one could optionally manually modify/adjust the message before use, but that would preferrably also require a refresh button to reset said changes to what the form would produce by default.
The text was updated successfully, but these errors were encountered: