#1865 closed enhancement (fixed)
Add a comment preview in the front end
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | Developer Hub | Keywords: | has-patch has-screenshots |
| Cc: |
Description
We should add a preview for user contributed notes in the front end. This will aid the users in submitting notes without mismatched code shortcodes.
This is similar to #1180, but for the front end.
Attachments (3)
Change History (12)
#1
@
9 years ago
1865.patch adds a live preview of the comment after the comment form with a AJAX. The preview is updated after you stop typing for 1.5 seconds. A button preview note is added to the editor. By applying the comment text filters in the AJAX callback all syntax highlighting and other styling is applied as it is with a submitted comment.
I've moved the syntaxhighlighter_htmlresult filter from /inc/handbooks.php to /functions.php because source code could be in post content, comments and handbooks.
#5
@
9 years ago
1865.1.patch makes the preview modular so it can be reused for adding a preview to the comment editor as described in #1180. With this patch the preview is updated after clicking a QuickTag button.
Add comment preview after comment form