PHP Classes

File: public/js/tinymce/src/plugins/codesample/src/main/js/Plugin.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/codesample/src/main/js/Plugin.js   Download  
File: public/js/tinymce/src/plugins/codesample/src/main/js/Plugin.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 1,253 bytes
 

Contents

Class file image Download
/** * Plugin.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.plugins.codesample.Plugin', [ 'ephox.katamari.api.Cell', 'tinymce.core.PluginManager', 'tinymce.plugins.codesample.api.Commands', 'tinymce.plugins.codesample.core.FilterContent', 'tinymce.plugins.codesample.core.LoadCss', 'tinymce.plugins.codesample.ui.Buttons', 'tinymce.plugins.codesample.ui.Dialog', 'tinymce.plugins.codesample.util.Utils' ], function (Cell, PluginManager, Commands, FilterContent, LoadCss, Buttons, Dialog, Utils) { var addedInlineCss = Cell(false); PluginManager.add('codesample', function (editor, pluginUrl) { var addedCss = Cell(false); FilterContent.setup(editor); Buttons.register(editor); Commands.register(editor); editor.on('init', function () { LoadCss.loadCss(editor, pluginUrl, addedInlineCss, addedCss); }); editor.on('dblclick', function (ev) { if (Utils.isCodeSample(ev.target)) { Dialog.open(editor); } }); }); return function () { }; } );