I'm trying to switch from Drupal to WordPress, and I have lots of articles written in Drupal's WYSIWYG Editors, and stored like
<p>Hi, this is an article</p><p><img bla='bla'></img></p>
So I want to directly copy the source code and paste it into WordPress. I can do it by disabling the visual text editor. So it works for migrating existing articles in.
But what about writing new articles?
I couldn't find any wysiwyg editors that automatically insert <p>
tags. I tried the Ultimate TinyMCE plugin, but it only adds some buttons, does not change the situation.
To summarize my problem:
When I write
Article line 1
Article line 2
in the "Visual" Tab, I want to see
<p>Article line 1</p><p>Article line 2</p>
in the "Text" Tab.
But instead, I see exactly what I wrote, and this causes bad HTML output, when getting $post->post_content;
Thanks !