[wp-hackers] HTML in the visual editor
Marcus.Pope at springbox.com
Fri Oct 28 17:03:21 UTC 2011
No, you're missing my point entirely - I'm not using the visual editor as an IDE, and I was trying to correct Preston's impression as well.
I'm simply talking about using the HTML tab to write post markup, then switching to the Visual tab. When you switch back your HTML markup is reformatted when it doesn't need to be.
That's all my plugin fixes - it keeps it the same way you wrote it.
From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Andrew Ozz
Sent: Friday, October 28, 2011 11:42 AM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] HTML in the visual editor
On 28/10/2011 8:53 AM, Marcus Pope wrote:
> To say that
> embedding text (be it textual representations of code, or general
> words of speech) in the visual editor is "doing it wrong" because
> wordpress has a deficiency in handling it is all about perspective.
Not sure what exactly you're trying to do but neither TinyMCE nor WordPress have problem in handling pasted code in the visual editor.
> But my main gripe is that when I spend a bunch of effort to markup a
> post in HTML, it shouldn't be mangled and ripped apart just because I
> want to preview it in the Visual tab.
This is a misconception: the visual editor is a _text_ editor, not HTML IDE thing. It works similarly to MS Word or OO Writer and uses HTML code for formatting the text the same way other text editors use xml. If you prefer to code the HTML by hand or other means, you shouldn't use it.
wp-hackers mailing list
wp-hackers at lists.automattic.com
More information about the wp-hackers