Events Manager
[resolved] [PATCH] Enlarge the textareas in Settings > Formatting (6 posts)

  1. Daedalon
    Posted 3 years ago #

    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.


  2. agelonwl
    Posted 3 years ago #

    I noticed this too, I've let Marcus know about it.

  3. Daedalon
    Posted 3 years ago #

    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?

  4. Daedalon
    Posted 3 years ago #

    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:



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

    and close it by replacing line 115




    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.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    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

  6. Daedalon
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.