PHP Classes

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

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/spellchecker/src/main/js/Plugin.js   Download  
File: public/js/tinymce/src/plugins/spellchecker/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,567 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.spellchecker.Plugin', [ 'ephox.katamari.api.Cell', 'tinymce.core.PluginManager', 'tinymce.plugins.spellchecker.alien.DetectProPlugin', 'tinymce.plugins.spellchecker.api.Api', 'tinymce.plugins.spellchecker.api.Commands', 'tinymce.plugins.spellchecker.api.Settings', 'tinymce.plugins.spellchecker.ui.Buttons', 'tinymce.plugins.spellchecker.ui.SuggestionsMenu' ], function (Cell, PluginManager, DetectProPlugin, Api, Commands, Settings, Buttons, SuggestionsMenu) { PluginManager.add('spellchecker', function (editor, pluginUrl) { if (DetectProPlugin.hasProPlugin(editor) === false) { var startedState = Cell(false); var currentLanguageState = Cell(Settings.getLanguage(editor)); var textMatcherState = Cell(null); var lastSuggestionsState = Cell({}); Buttons.register(editor, pluginUrl, startedState, textMatcherState, currentLanguageState, lastSuggestionsState); SuggestionsMenu.setup(editor, pluginUrl, lastSuggestionsState, startedState, textMatcherState); Commands.register(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState); return Api.get(editor, startedState, lastSuggestionsState, textMatcherState, pluginUrl); } }); return function () { }; } );