Fixes #4204: use div instead of p in visual editor to prevent nesting issues.