Re: Editing in a text area field

From: Date: Sun, 11 Jan 2009 01:28:34 +0000
Subject: Re: Editing in a text area field
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-285998@lists.php.net to get a copy of this message
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

« previous php.general (#285998) next »