PHP Classes

File: public/js/tinymce/src/plugins/bbcode/src/test/js/browser/BbcodeSanityTest.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/bbcode/src/test/js/browser/BbcodeSanityTest.js   Download  
File: public/js/tinymce/src/plugins/bbcode/src/test/js/browser/BbcodeSanityTest.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,439 bytes
 

Contents

Class file image Download
asynctest( 'browser.tinymce.plugins.bbcode.BbcodeSanityTest', [ 'ephox.agar.api.ApproxStructure', 'ephox.agar.api.Pipeline', 'ephox.agar.api.Step', 'ephox.mcagar.api.TinyApis', 'ephox.mcagar.api.TinyLoader', 'tinymce.plugins.bbcode.Plugin', 'tinymce.themes.modern.Theme' ], function (ApproxStructure, Pipeline, Step, TinyApis, TinyLoader, BbcodePlugin, ModernTheme) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; BbcodePlugin(); ModernTheme(); TinyLoader.setup(function (editor, onSuccess, onFailure) { var tinyApis = TinyApis(editor); Pipeline.async({}, [ tinyApis.sSetContent('[b]a[/b]'), tinyApis.sAssertContentStructure(ApproxStructure.build(function (s, str) { return s.element('body', { children: [ s.element('p', { children: [ s.element('strong', { children: [ s.text(str.is('a')) ] }) ] }) ] }); })) ], onSuccess, onFailure); }, { plugins: 'bbcode', toolbar: 'bbcode', skin_url: '/project/src/skins/lightgray/dist/lightgray', bbcode_dialect: 'punbb' }, success, failure); } );