'wpFilterRules', 'id' => 'wpFilterRules', // Rules are in English 'dir' => 'ltr', 'cols' => 40, 'rows' => 15, ]; if ( !$isUserAllowed ) { $editorAttribs['readonly'] = 'readonly'; } if ( $externalForm ) { $editorAttribs['form'] = 'wpFilterForm'; } return Html::element( 'textarea', $editorAttribs, $rules ); } }