Module: Card::Set::All::ReferenceEditor::LinkEditor::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod037-card-mod-tinymce_editor/all/reference_editor/link_editor.rb,
card/tmpsets/set/mod038-card-mod-tinymce_editor/all/reference_editor/link_editor.rb

Instance Method Summary collapse

Instance Method Details



37
38
39
# File 'card/tmpsets/set/mod037-card-mod-tinymce_editor/all/reference_editor/link_editor.rb', line 37

def link_apply_opts
  apply_tm_snippet_data link_snippet
end


21
22
23
24
25
# File 'card/tmpsets/set/mod037-card-mod-tinymce_editor/all/reference_editor/link_editor.rb', line 21

def link_editor editor_mode
  @tm_snippet_editor_mode = editor_mode
  haml :reference_editor, ref_type: :link, editor_mode: @tm_snippet_editor_mode,
                          apply_opts: link_apply_opts, snippet: link_snippet
end


33
34
35
# File 'card/tmpsets/set/mod037-card-mod-tinymce_editor/all/reference_editor/link_editor.rb', line 33

def link_snippet
  @link_snippet ||= LinkParser.new params[:tm_snippet_raw]
end


27
28
29
30
31
# File 'card/tmpsets/set/mod037-card-mod-tinymce_editor/all/reference_editor/link_editor.rb', line 27

def modal_link_editor
  wrap_with :modal do
    link_editor :modal
  end
end


9
10
11
12
13
14
# File 'card/tmpsets/set/mod037-card-mod-tinymce_editor/all/reference_editor/link_editor.rb', line 9

view :link_editor, cache: :never, unknown: true,
                   wrap: {
                     slot: { class: "_overlay d0-card-overlay card nodblclick" }
                   } do
  link_editor :overlay
end


16
17
18
19
# File 'card/tmpsets/set/mod037-card-mod-tinymce_editor/all/reference_editor/link_editor.rb', line 16

view :modal_link_editor, cache: :never, unknown: true,
                         wrap: { slot: { class: "nodblclick" } } do
  modal_link_editor
end