/home/aqcert/public_html/admin/tinymce/tests/tinymce
NameSizeModeActions
caret/-0755rm
data/-0755rm
dom/-0755rm
file/-0755rm
fmt/-0755rm
geom/-0755rm
html/-0755rm
text/-0755rm
ui/-0755rm
util/-0755rm
AddOnManager.js14490644editdlrm
Editor.js141920644editdlrm
EditorCommands.js310570644editdlrm
EditorManager.js50020644editdlrm
EditorUpload.js85920644editdlrm
Editor_rtl.js15990644editdlrm
EnterKey.js396560644editdlrm
ForceBlocks.js29810644editdlrm
Formatter_apply.js618870644editdlrm
Formatter_check.js84520644editdlrm
Formatter_remove.js182520644editdlrm
InsertContent.js40010644editdlrm
InsertList.js14030644editdlrm
SelectionOverrides.js119120644editdlrm
Shortcuts.js23660644editdlrm
UndoManager.js100110644editdlrm
WindowManager.js8520644editdlrm
Edit: /home/aqcert/public_html/admin/tinymce/tests/tinymce/Editor_rtl.js (1599B)
ModuleLoader.require([ "tinymce/util/I18n", "tinymce/ui/Control" ], function(I18n, Control) { var scriptLoadedRtlState = {}; module("tinymce.Editor_rtl", { setupModule: function() { QUnit.stop(); tinymce.addI18n('ar', { "Bold": "Bold test", "_dir": "rtl" }); tinymce.init({ selector: "textarea", toolbar: 'bold italic underline', setup: function (editor) { var beforeEventRtl = editor.rtl; editor.on('ScriptsLoaded', function () { // We will know the rtl mode and code after all scripts have been loaded scriptLoadedRtlState = { beforeRtl: beforeEventRtl, afterRtl: editor.rtl, code: I18n.getCode() }; }); }, init_instance_callback: function(ed) { window.editor = ed; QUnit.start(); } }); }, teardown: function() { I18n.rtl = false; I18n.setCode('en'); Control.rtl = false; } }); test('UI rendered in RTL mode', function() { QUnit.equal(tinymce.activeEditor.getContainer().className.indexOf('mce-rtl') !== -1, true, 'Should have a mce-rtl class'); QUnit.equal(tinymce.activeEditor.rtl, true, 'Should have the rtl property set'); }); test('Rtl mode property set on editor instance and I18n global', function() { QUnit.equal(scriptLoadedRtlState.beforeRtl, undefined, 'Should be undefined since we dont know the rtl mode yet'); QUnit.equal(scriptLoadedRtlState.afterRtl, true, 'Should be true since we now know the rtl mode'); QUnit.equal(scriptLoadedRtlState.code, 'ar', 'Should be "ar" since the code hass been changed during loading'); }); });