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

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod033-tinymce_editor/all/reference_editor/link_editor.rb

Instance Method Summary collapse

Instance Method Details



39
40
41
# File 'platypus/tmp/set/gem-defaults/mod033-tinymce_editor/all/reference_editor/link_editor.rb', line 39

def link_apply_opts
  apply_tm_snippet_data link_snippet
end


21
22
23
24
25
26
27
# File 'platypus/tmp/set/gem-defaults/mod033-tinymce_editor/all/reference_editor/link_editor.rb', line 21

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


35
36
37
# File 'platypus/tmp/set/gem-defaults/mod033-tinymce_editor/all/reference_editor/link_editor.rb', line 35

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


29
30
31
32
33
# File 'platypus/tmp/set/gem-defaults/mod033-tinymce_editor/all/reference_editor/link_editor.rb', line 29

def modal_link_editor
  wrap_with :modal do
    link_editor :modal
  end
end


9
10
11
12
13
14
# File 'platypus/tmp/set/gem-defaults/mod033-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 'platypus/tmp/set/gem-defaults/mod033-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