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

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod018-card-mod-ace_editor/all/ace_editor.rb,
card/tmpsets/set/mod017-card-mod-ace_editor/all/ace_editor.rb

Instance Method Summary collapse

Instance Method Details

#ace_editor_inputObject



10
11
12
13
14
# File 'card/tmpsets/set/mod018-card-mod-ace_editor/all/ace_editor.rb', line 10

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

#ace_modeObject



16
17
18
# File 'card/tmpsets/set/mod018-card-mod-ace_editor/all/ace_editor.rb', line 16

def ace_mode
  :html
end