<?php

class MBwysiwyg extends MBComponentBase {
  protected function init_options($options) {
    $options->enabled = true;
    $options->id = "inoby-wysiwyg";
    $options->title = __("Formátovateľný text", "inoby");
    $options->icon = "columns";
    $options->render_template = get_theme_file_path("components/wysiwyg/template.php");
    $options->fields = [
      [
        'name' => __('Textovy editor', 'inoby'),
        "id" => "wysiwyg",
        "type" => "wysiwyg",
        "raw" => false,
        "sanitize_callback" => "none",
        "options" => [
          "textarea_rows" => 4,
          "teeny" => true,
          "media_buttons" => false,
        ],
      ],
    ];
  }
}