class Playbook::PbRichTextEditor::RichTextEditor

def classname

def classname
  generate_classname("pb_rich_text_editor_kit", simple_class, focus_class, sticky_class, separator: " ")
end

def focus_class

def focus_class
  focus ? "focus-editor-targets" : nil
end

def rich_text_options

def rich_text_options
  {
    id: id,
    inline: inline,
    className: classname,
    focus: focus,
    simple: simple,
    sticky: sticky,
    toolbarBottom: toolbar_bottom,
    value: value,
    template: template,
    placeholder: placeholder,
  }
end

def simple_class

def simple_class
  simple ? "simple" : nil
end

def sticky_class

def sticky_class
  sticky ? "sticky" : nil
end