Skip to content

Commit 55c2438

Browse files
authored
Fixed issue where editor tabs were not consistently clickable.
Fixed issue where plugin was unnecessarily dependent on Gravity Perks.
1 parent 07cff7a commit 55c2438

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gravity-forms/gw-rich-text-html-fields.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
/*
1111
* @todo
1212
* 1. Add merge tag selector.
13-
* 2. Add support for inserting images.
1413
*/
1514

1615
add_action( 'admin_init', function() {
@@ -20,7 +19,10 @@
2019
}
2120
} );
2221

23-
add_action( 'gform_field_standard_settings_200', function() {
22+
add_action( 'gform_field_standard_settings', function( $position ) {
23+
if ( $position !== 200 ) {
24+
return;
25+
}
2426
?>
2527

2628
<li class="content_setting rich_content_setting field_setting">
@@ -41,6 +43,8 @@
4143

4244
<style>
4345
.rich_content_setting label {
46+
/* Display the label above the editor without overlapping the Visual/Code tabs. */
47+
display: inline-block !important;
4448
position: relative;
4549
z-index: 2;
4650
}

0 commit comments

Comments
 (0)