PHP Classes

File: public/js/tinymce/src/plugins/spellchecker/src/main/js/api/Api.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/spellchecker/src/main/js/api/Api.js   Download  
File: public/js/tinymce/src/plugins/spellchecker/src/main/js/api/Api.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,169 bytes
 

Contents

Class file image Download
/** * Api.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.api.Api', [ 'tinymce.plugins.spellchecker.api.Settings', 'tinymce.plugins.spellchecker.core.Actions' ], function (Settings, Actions) { var get = function (editor, startedState, lastSuggestionsState, textMatcherState, url) { var getLanguage = function () { return Settings.getLanguage(editor); }; var getWordCharPattern = function () { return Settings.getSpellcheckerWordcharPattern(editor); }; var markErrors = function (data) { Actions.markErrors(editor, startedState, textMatcherState, lastSuggestionsState, data); }; var getTextMatcher = function () { return textMatcherState.get(); }; return { getTextMatcher: getTextMatcher, getWordCharPattern: getWordCharPattern, markErrors: markErrors, getLanguage: getLanguage }; }; return { get: get }; } );