• Resolved Daedalon

    (@daedalon)


    The <textarea> elements in Events Manager’s admin area are tiny and very inconvenient for editing for example HTML or the email templates. An easy fix is to let the forms use more of the vertical space that is available by adding this in includes/css/events_manager_admin.css:

    #em-options-form textarea{ width: 95%; }

    With this their width is the same as the input[type=text] elements.

    http://wordpress.org/extend/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I noticed this too, I’ve let Marcus know about it.

    Thread Starter Daedalon

    (@daedalon)

    I was hoping this would have been included in 5.3.3, as editing HTML formatting in the admin area is a pain before this patch is implemented.

    Marcus: Any chance of this getting into the next update?

    Thread Starter Daedalon

    (@daedalon)

    It’d be useful to make a similar update for the widgets as well by increasing their textarea widths to 100% and considering increasing the amount of rows from 5 to 6.

    1. The better option in my opinion: wrap all widgets’ admin forms in classes and then add a CSS rule. This is better in terms of being update-safe and for user customizations. On way to do it is to add an invisible wrapper div. In widgets/em-events.php you’d replace the line 74:

    <p>

    with

    <div class="em-widget-form em-widget-locations-form">
    <p>

    and close it by replacing line 115

    </p>

    with

    </p>
    </div>

    The corresponding update should be done to widgets/em-events.php and widgets/em-calendar.php.

    When that’s done, the core deserves a CSS change to includes/css/events_manager_admin.css much like in previous post::

    .em-widget-form textarea { width: 100%; }

    2. Another option is to make a less customizable change. In widgets/em-events.php the line 156:

    <textarea rows="5" cols="24" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>"><?php echo $instance['format']; ?></textarea>

    should be changed to this for optimal width:

    <textarea rows="5" cols="24" style="width:100%" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>"><?php echo $instance['format']; ?></textarea>

    or to this for one additional row for even more comfortable editing:

    <textarea rows="6" cols="24" style="width:100%" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>"><?php echo $instance['format']; ?></textarea>

    In widgets/em-locations.php the corresponding line is 114.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    on the todo list but not exactly high priority so can’t say when, width 100% wouldn’t work in some cases so need to test that

    Thread Starter Daedalon

    (@daedalon)

    Which cases would they be? I’d love to help by testing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[PATCH] Enlarge the textareas in Settings > Formatting’ is closed to new replies.