Editor

Component design:

How to use a component:

STM_LMS_Templates::show_lms_template(
    'components/wp-editor',
    array(
        'id'        => string, (required)
        'content'   => object, (required) standard wordpress the_content() or another
        'settings'  => array(
            'quicktags'     => false,
            'media_buttons' => false,
            'textarea_rows' => 13,
         ), (required) settings of wp_editor()
         'dark_mode' => bool, (required)
     )
);

Last updated