"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

var _escapeHtml = _interopRequireDefault(require("escape-html"));

var _formatMessage = _interopRequireDefault(require("../../../format-message"));

var _clickCallback = _interopRequireDefault(require("./clickCallback"));

/*
 * Copyright (C) 2018 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
tinymce.create("tinymce.plugins.InstructureEquella", {
  init: function init(ed) {
    ed.addCommand("instructureEquella", _clickCallback.default.bind(this, ed, document));
    ed.addButton("instructure_equella", {
      title: (0, _escapeHtml.default)("Equella Ba\u011Flant\u0131s\u0131 Ekle"),
      cmd: "instructureEquella",
      icon: "equella icon-equella"
    });
  },
  getInfo: function getInfo() {
    return {
      longname: "InstructureEquella",
      author: "Brian Whitmer",
      authorurl: "http://www.instructure.com",
      infourl: "http://www.instructure.com",
      version: tinymce.majorVersion + "." + tinymce.minorVersion
    };
  }
}); // Register plugin

tinymce.PluginManager.add("instructure_equella", tinymce.plugins.InstructureEquella);