PHP Classes

File: public/js/tinymce/src/themes/inlite/src/test/js/module/test/Toolbar.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/inlite/src/test/js/module/test/Toolbar.js   Download  
File: public/js/tinymce/src/themes/inlite/src/test/js/module/test/Toolbar.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,129 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.inlite.test.Toolbar', [ 'ephox.mcagar.api.TinyDom', 'ephox.agar.api.Chain', 'ephox.agar.api.UiFinder', 'ephox.agar.api.Mouse' ], function (TinyDom, Chain, UiFinder, Mouse) { var dialogRoot = TinyDom.fromDom(document.body); var cWaitForToolbar = Chain.fromChainsWith(dialogRoot, [ UiFinder.cWaitForState('Did not find inline toolbar', '.mce-tinymce-inline', function (elm) { return elm.dom().style.display === ""; }) ]); var sWaitForToolbar = function () { return Chain.asStep({}, [ cWaitForToolbar ]); }; var cClickButton = function (ariaLabel) { return Chain.fromChains([ UiFinder.cFindIn('div[aria-label="' + ariaLabel + '"]'), Mouse.cTrueClick ]); }; var sClickButton = function (ariaLabel) { return Chain.asStep({}, [ cWaitForToolbar, cClickButton(ariaLabel) ]); }; return { cWaitForToolbar: cWaitForToolbar, sWaitForToolbar: sWaitForToolbar, cClickButton: cClickButton, sClickButton: sClickButton }; } );