Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

CRED wysiwyg input has unwanted leading space in first p tag

$
0
0

For posts written on the frontend with a CRED form I noticed that there was a space appearing before the first word of the post. I've been trying to find a way to remove that space because it looks a little sloppy.

Here's what's generated on a frontend page for creating posts:

<iframe frameborder="0" src="javascript:true;" style="width: 654px; height: 217px;">
	<html>
		<head></head>
		<body style="position:relative;">
			<p>&nbsp;</p><!-- how can we kill that leading space?-->
		</body>
	</html>
</iframe>

I understand (from this post https://wp-types.com/forums/topic/cred-wysiwyg-field-is-pre-populating-with/) that the p with the empty space is necessary for autop to work on subsequent paragraphs, but is there some way to remove that leading space?

Thanks,
Eric


Viewing all articles
Browse latest Browse all 20145

Trending Articles