a:13:{s:9:"#provides";s:31:"dijit._editor.plugins.ToggleDir";s:9:"#resource";s:28:"_editor/plugins/ToggleDir.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:21:"dijit._editor._Plugin";}}s:31:"dijit._editor.plugins.ToggleDir";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:21:"dijit._editor._Plugin";}s:4:"call";a:1:{i:0;s:21:"dijit._editor._Plugin";}}s:14:"private_parent";b:1;s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:49:"dijit._editor.plugins.ToggleDir.useDefaultCommand";a:3:{s:9:"prototype";s:31:"dijit._editor.plugins.ToggleDir";s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:39:"dijit._editor.plugins.ToggleDir.command";a:3:{s:9:"prototype";s:31:"dijit._editor.plugins.ToggleDir";s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:43:"dijit._editor.plugins.ToggleDir._initButton";a:6:{s:9:"prototype";s:31:"dijit._editor.plugins.ToggleDir";s:4:"type";s:8:"Function";s:6:"source";s:869:"dojo.provide("dijit._editor.plugins.ToggleDir"); dojo.experimental("dijit._editor.plugins.ToggleDir"); dojo.require("dijit._editor._Plugin"); dojo.declare("dijit._editor.plugins.ToggleDir", dijit._editor._Plugin, { //summary: // This plugin is used to toggle direction of the edited document only, // no matter what direction the whole page is. // TODO: like TabIndent plugin, this should probably be using ToggleButton // Override _Plugin.useDefaultCommand: processing is done in this plugin rather than by sending command to // the Editor useDefaultCommand: false, // TODO: unclear if this is needed. command: "toggleDir", _initButton: function(){ // Override _Plugin._initButton() to setup handler for button click events. this.inherited("_initButton", arguments); this.connect(this.button, "onClick", this._toggleDir); ";s:7:"private";b:1;s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:43:"dijit._editor.plugins.ToggleDir.updateState";a:5:{s:9:"prototype";s:31:"dijit._editor.plugins.ToggleDir";s:4:"type";s:8:"Function";s:6:"source";s:1036:"dojo.provide("dijit._editor.plugins.ToggleDir"); dojo.experimental("dijit._editor.plugins.ToggleDir"); dojo.require("dijit._editor._Plugin"); dojo.declare("dijit._editor.plugins.ToggleDir", dijit._editor._Plugin, { //summary: // This plugin is used to toggle direction of the edited document only, // no matter what direction the whole page is. // TODO: like TabIndent plugin, this should probably be using ToggleButton // Override _Plugin.useDefaultCommand: processing is done in this plugin rather than by sending command to // the Editor useDefaultCommand: false, // TODO: unclear if this is needed. command: "toggleDir", _initButton: function(){ // Override _Plugin._initButton() to setup handler for button click events. this.inherited("_initButton", arguments); this.connect(this.button, "onClick", this._toggleDir); }, updateState: function(){ // Override _Plugin.updateState() to do nothing, since we don't need to react to changes in the // editor like arrow keys etc.";s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:42:"dijit._editor.plugins.ToggleDir._toggleDir";a:6:{s:9:"prototype";s:31:"dijit._editor.plugins.ToggleDir";s:4:"type";s:8:"Function";s:6:"source";s:200:" var editDoc = this.editor.editorObject.contentWindow.document.documentElement; var isLtr = dojo.getComputedStyle(editDoc).direction == "ltr"; editDoc.dir/*html node*/ = isLtr ? "rtl" : "ltr";";s:7:"summary";s:75:"Handler for button click events, to switch the text direction of the editor";s:7:"private";b:1;s:14:"private_parent";b:1;}s:8:"o.plugin";a:1:{s:7:"summary";s:0:"";}s:21:"dijit._editor.plugins";a:3:{s:4:"type";s:6:"Object";s:14:"private_parent";b:1;s:7:"summary";s:0:"";}s:13:"dijit._editor";a:3:{s:4:"type";s:6:"Object";s:7:"private";b:1;s:7:"summary";s:0:"";}s:5:"dijit";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}