true,
'language' => 'html', // html/css
'rows' => 10,
'ai' => [
'active' => true,
'type' => 'code',
],
'dynamic' => [
'categories' => [ TagsModule::TEXT_CATEGORY ],
],
];
}
/**
* Render code control output in the editor.
*
* Used to generate the control HTML in the editor using Underscore JS
* template. The variables for the class are available using `data` JS
* object.
*
* @since 1.0.0
* @access public
*/
public function content_template() {
?>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #>