Sha256: 16a530bbcde7e0fa9a4da6594a16fc4b53394f650f27dc9d9b007dbc3d4d1b50

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

tinymce.PluginManager.add "lolita_gallery", (editor, url) ->

  # Add a button that opens a window
  editor.addButton "lolita_gallery",
    text: "<%= I18n.t("lolita.upload.gallery.tinymce.button_text") %>"
    icon: "image"
    onclick: -> window.LolitaFileUploadGallery.get().toggle()

  # Adds a menu item to the tools menu
  editor.addMenuItem "lolita_gallery",
    text: "<%= I18n.t("lolita.upload.gallery.tinymce.button_text") %>"
    icon: "image"
    context: "tools"
    onclick: -> window.LolitaFileUploadGallery.get().toggle()

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lolita-file-upload-1.0.5 app/assets/javascripts/tinymce/plugins/lolita_gallery/plugin.js.coffee.erb
lolita-file-upload-1.0.4 app/assets/javascripts/tinymce/plugins/lolita_gallery/plugin.js.coffee.erb
lolita-file-upload-1.0.3 app/assets/javascripts/tinymce/plugins/lolita_gallery/plugin.js.coffee.erb
lolita-file-upload-1.0.2 app/assets/javascripts/tinymce/plugins/lolita_gallery/plugin.js.coffee.erb
lolita-file-upload-1.0.1 app/assets/javascripts/tinymce/plugins/lolita_gallery/plugin.js.coffee.erb
lolita-file-upload-1.0.0 app/assets/javascripts/tinymce/plugins/lolita_gallery/plugin.js.coffee.erb