Sha256: 94544432c939832fbe79a0d8783d967f9eddf7980a099a5df01863b3641bd7c5

Contents?: true

Size: 880 Bytes

Versions: 24

Compression:

Stored size: 880 Bytes

Contents

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

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

  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

  def modal_link_editor
    wrap_with :modal do
      link_editor :modal
    end
  end

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

  def link_apply_opts
    apply_tm_snippet_data link_snippet
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
card-1.99.5 mod/tinymce_editor/set/all/reference_editor/link_editor.rb
card-1.99.4 mod/tinymce_editor/set/all/reference_editor/link_editor.rb
card-1.99.3 mod/tinymce_editor/set/all/reference_editor/link_editor.rb
card-1.99.2 mod/tinymce_editor/set/all/reference_editor/link_editor.rb