Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | public static function editor_init() { |
||
25 | ?> |
||
26 | <div style="display:none;"> |
||
27 | <?php |
||
28 | $settings = array( |
||
29 | 'tinymce' => array( |
||
30 | 'resize' => true, |
||
31 | 'wp_autoresize_on' => true, |
||
32 | ), |
||
33 | ); |
||
34 | |||
35 | add_filter( 'user_can_richedit', '__return_true' ); |
||
36 | wp_editor( '', 'carbon_settings', $settings ); |
||
37 | remove_filter( 'user_can_richedit', '__return_true' ); |
||
38 | ?> |
||
39 | </div> |
||
40 | <?php |
||
41 | } |
||
42 | |||
59 |