PHP Classes

File: public/js/tinymce/src/core/src/test/js/browser/EditorRtlTest.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra  >  GoLavaCMS  >  public/js/tinymce/src/core/src/test/js/browser/EditorRtlTest.js  >  Download  
File: public/js/tinymce/src/core/src/test/js/browser/EditorRtlTest.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: 4 years ago
Size: 1,892 bytes


Class file image Download
  function (Pipeline, LegacyUnit, TinyLoader, document, ScriptLoader, EditorManager, InsertContent, Factory, I18n, Theme) {
    var success = arguments[arguments.length - 2];
    var failure = arguments[arguments.length - 1];
    var suite = LegacyUnit.createSuite();


    var teardown = function () {
      I18n.rtl = false;
      Factory.get('Control').rtl = false;

    suite.test('UI rendered in RTL mode', function () {
      LegacyUnit.equal(EditorManager.activeEditor.getContainer().className.indexOf('mce-rtl') !== -1, true, 'Should have a mce-rtl class');
      LegacyUnit.equal(EditorManager.activeEditor.rtl, true, 'Should have the rtl property set');

    EditorManager.addI18n('ar', {
      "Bold": "Bold test",
      "_dir": "rtl"

    // Prevents the arabic language pack from being loaded
      base_url: '/project/tinymce'
    ScriptLoader.ScriptLoader.markDone('http://' + + '/project/tinymce/langs/ar.js');

    TinyLoader.setup(function (editor, onSuccess, onFailure) {
      Pipeline.async({}, suite.toSteps(editor), function () {
      }, onFailure);
    }, {
      language: 'ar',
      selector: "textarea",
      add_unload_trigger: false,
      disable_nodechange: true,
      entities: 'raw',
      indent: false,
      skin_url: '/project/src/skins/lightgray/dist/lightgray'
    }, success, failure);
For more information send a message to info at phpclasses dot org.