Sha256: 88d255b575f6f339c470c19e6f0a7f0d5ba3161c1462e140b35b15c88f848af6
Contents?: true
Size: 599 Bytes
Versions: 4
Compression:
Stored size: 599 Bytes
Contents
if (!RedactorPlugins) var RedactorPlugins = {}; RedactorPlugins.textdirection = { init: function() { var that = this; var dropdown = {}; dropdown['ltr'] = { title: 'Left to right', callback: function () { that.ltrTextDirection(); } }; dropdown['rtl'] = { title: 'Right to left', callback: function () { that.rtlTextDirection(); } }; this.buttonAdd('direction', 'Change direction', false, dropdown); }, rtlTextDirection: function() { this.bufferSet(); this.blockSetAttr('dir', 'rtl'); }, ltrTextDirection: function() { this.bufferSet(); this.blockRemoveAttr('dir'); } };
Version data entries
4 entries across 4 versions & 1 rubygems