sleemanj / xinha

WYSIWYG HTML Editor Component (turns <textarea> into HTML editors)
http://trac.xinha.org/
Other
13 stars 2 forks source link

some patches for EFM (Trac #852) #852

Closed sleemanj closed 4 years ago

sleemanj commented 18 years ago

Hi!

  1. If you dont't specify any margin, padding, or border the respective styles are inserted anyway with a value of 0px, which, first, blows up the code unnecessaryly and, second, may interfere with existing stylesheets

  2. Like the two new config variables for alt and title, I'd like to introduce even more options to grant the administrator more control over what a user can change

I think especially the last one is important regarding XHTML strict

  1. some UI tweaks
    • show max upload size (imo very important to let the user not run into the limit unknowingly)
    • display the mode in the title bar of the popup
    • made a new "constrain proportions unlocked" icon (ok, that a matter of taste :))

looks like this: http://raimundmeyer.de/xinha/efm_screenshot.png

What do you think, shall I commit?

Reported by ray, migrated from http://trac.xinha.org/ticket/852

sleemanj commented 18 years ago

koto commented:

Of course (these are great features, thanks!), just one note: make sure that you update the col/rowspans for the table when changing the number of rows to hide/show appropriate fields in the popup. The code is quite trick about that :(

sleemanj commented 18 years ago

Yes, quite tricky indeed. Cut it down to $IMConfig['images_enable_styling'] to toggle them altogether. That's what I was about anyway... Next is, I'd like to change alignment to css, because, you know, deprecated etc. :)

sleemanj commented 18 years ago

Commited a small color-pickers related bugfix - see changeset:576