Syntax_Highlighter::editor_buttons( string $name, object $field )
Description #
Add insert code button before editor.
Parameters #
- $namestring (Required) Field name.
- $fieldobject (Required) Field object.
Source #
File: addons/syntaxhighlighter/syntaxhighlighter.php
public function editor_buttons( $name, $field ) { $field->add_html( '<button type="button" class="ap-btn-insertcode ap-btn-small ap-btn mb-10 ap-mr-5" apinsertcode><i class="apicon-code ap-mr-3"></i>' . __( 'Insert Code', 'anspress-question-answer' ) . '</button>' ); }
Expand full source code Collapse full source code View on GitHub: addons/syntaxhighlighter/syntaxhighlighter.php:158
Add your comment