[wp-trac] [WordPress Trac] #11735: unwrap text in theme and plugin editors
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 13 20:57:31 UTC 2010
#11735: unwrap text in theme and plugin editors
-------------------------+--------------------------------------------------
Reporter: miken32 | Owner:
Type: enhancement | Status: new
Priority: lowest | Milestone: Future Release
Component: Themes | Version: 3.0
Severity: minor | Keywords:
-------------------------+--------------------------------------------------
Changes (by edward mindreantre):
* cc: edward, mindreantre (added)
* priority: normal => lowest
* component: Administration => Themes
* milestone: Unassigned => Future Release
Comment:
Actually that doesn't work.
''white-space: nowrap'' takes care of actual HTML elements. The text
inside a textarea is not html therefore isn't affected by nowrap.
In fact, CSS has no attributes for textareas when it comes to wrapping.
There is a "solution": ''wrap="off"'' as a textarea setting.
The problem is that it's non-standard although understood by both Firefox
and IE.
So now you've got a choice:
1. In theme-editor.php, line 198, add wrap="off" and then break the HTML
validation
2. Make the textarea a tinymce edit box
3. Live with the word wrapping and use notepad/gedit to copy/paste to.
I vote for #3.
#2 is also acceptable, since I doubt people are gonna commit suicide
waiting for tinymce to load.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11735#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list