ChliiTierChnuebler
Member
Posted 1 year ago #
In my LiveCommentPreview, the text shows always a bold style after pressing "Enter" to go on the next line. After submitting, the text is back to normal.
I'm using Mac OSX, Safari or Firefox, newest Version. How can I change this, so the text shows normal in the preview?
I looked here and found that there is a line which you can edit to change the default way that a live comment is displayed:
// Customize this string if you want to modify the preview output
// %1 - author's name (as hyperlink if available)
// %2 - comment text
$previewFormat = "<p><strong>Preview:</strong></p><p><em>%1:</em></p><p>%2</p>";
it is possible that the part that should read: <strong>Preview:</strong> has the / missing from the closing </strong> tag.
Just a thought. Good luck!
ChliiTierChnuebler
Member
Posted 1 year ago #
This is working. Thanks a lot mfields.
I encountered this problem, too. As far as I can tell, the problem is that correct styling is applied only to text within paragraph tags in the comment preview. For some reason, only the last line of text is displayed properly this way; previous paragraphs are broken up via incorrect <br> tags.
Does anyone know where this processing comes from? It's not in the plugin, so I assume it comes from Wordpress itself.