| 1 | <?php |
||
| 8 | class Rich_Text_Field extends Textarea_Field { |
||
| 9 | protected $lazyload = true; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Admin initialization actions. |
||
| 13 | */ |
||
| 14 | public function admin_init() { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Display the editor. |
||
| 20 | * |
||
| 21 | * Instead of enqueueing all required scripts and stylesheets and setting up TinyMCE, |
||
| 22 | * wp_editor() automatically enqueues and sets up everything. |
||
| 23 | */ |
||
| 24 | public static function editor_init() { |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns an array that holds the field data, suitable for JSON representation. |
||
| 45 | * |
||
| 46 | * @param bool $load Should the value be loaded from the database or use the value from the current instance. |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | public function to_json( $load ) { |
||
| 58 | } |
||
| 59 |