I noticed this too, I’ve let Marcus know about it.
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?
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.
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
Which cases would they be? I’d love to help by testing.