<?php
/**
 * Preview script for html markup generator
 *
 * @package tutor-kirki-elements
 */

namespace TutorLMSKirki;

if (! defined('ABSPATH')) {
    exit; // Exit if accessed directly.
}

/**
 * Class Editor
 * This class is used to define all editor functions.
 */
class Editor
{

    /**
     * Class constructor
     *
     * @since 1.0.0
     */
    public function __construct()
    {
        add_action('wp_enqueue_scripts', [$this, 'load_assets'], 100);
    }

    /**
     * Load assets
     *
     * @since 1.0.0
     */
    public function load_assets()
    {
        wp_enqueue_script(TDE_APP_PREFIX . '-tutor-kirki-elements', TDE_PLUGIN_ROOT_BASE . 'build/js/editor.min.js', ['wp-i18n', 'kirki-editor'], TDE_APP_VERSION, true);
        wp_enqueue_style(TDE_APP_PREFIX . '-tutor-kirki-elements', TDE_PLUGIN_ROOT_BASE . 'build/css/editor.min.css', null, TDE_APP_VERSION);
    }
}
