Re: Editing in a text area field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2009-01-11 at 11:19 +1100, Ross McKay wrote:
> tedd wrote:
> 
> >The argument over what HTML is, will never be resolved.
> >
> >I say it's a delivery mechanism and tags such as <b> and <i> are 
> >unwanted elements. They simply confuse/blur the purpose of the 
> >language.
> 
> I should have said <strong> and <em>, I guess. Of course, copypasta from
> another rich text editor can put in <b> and <i> but you should be able
> to handle that as <strong> and <em>, and then define what you want that
> to look like in CSS.
> 
> HTML is a markup language. The actual appearance should be left to
> stylesheets, but HTML is how users specify which bits of text get which
> appearance. 
> 
> Sometimes, the only way to meet a client's requirements is to allow
> content stored as HTML. IMHO, the worst thing you can do there is let
> them type in the HTML tags themselves; as you have noted, they forget to
> close tags, then complain when the website "breaks". That's where the
> many browser-based (mostly JavaScript) rich text editors come in to
> their own.
> -- 
> Ross McKay, Toronto, NSW Australia
> "Nobody ever rioted for austerity" - George Monbiot
> 
FCKEditor is a good editor (although poorly named!) that allows you to
set it not to use <b> and <i> tags and force it to convert them to
<strong> and <em> instead. Couple this with a decent regex and you can
strip out the extra style tags which result from a pasted MSWord
selection.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux