Module: Card::Set::All::AceEditor::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod020-ace_editor/all/ace_editor.rb

Instance Method Summary collapse

Instance Method Details

#ace_configObject



12
13
14
# File 'platypus/tmp/set/gem-defaults/mod020-ace_editor/all/ace_editor.rb', line 12

def ace_config
  Card::Rule.global_setting :ace
end

#ace_editor_inputObject



16
17
18
19
20
# File 'platypus/tmp/set/gem-defaults/mod020-ace_editor/all/ace_editor.rb', line 16

def ace_editor_input
  text_area :content, rows: 5,
                      class: "d0-card-content ace-editor-textarea",
                      "data-ace-mode" => ace_mode
end

#ace_modeObject



22
23
24
# File 'platypus/tmp/set/gem-defaults/mod020-ace_editor/all/ace_editor.rb', line 22

def ace_mode
  :html
end