PHP Classes

File: js/subsup/subsup.js

Recommend this page to a friend!
  Classes of Insolita   Ext Imperavi   js/subsup/subsup.js   Download  
File: js/subsup/subsup.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Ext Imperavi
Integrates the Imperavi editor in YII applications
Author: By
Last change:
Date: 2 years ago
Size: 913 bytes
 

Contents

Class file image Download
/*** add subscript and superscript buttons (c)Insolita ***/ if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {}; RedactorPlugins.subsup ={ init: function () { this.opts.langs['ru'] = $.extend({ subname: '??????????? ??????', supname: '??????????? ??????' }, this.opts.langs['ru']); this.opts.langs['en'] = $.extend({ subname: 'Subscript', supname: 'Superscript' }, this.opts.langs['en']); this.opts.curLang = this.opts.langs[this.opts.lang]; this.buttonAdd('subs', this.opts.curLang.subname, this.txtSub); this.buttonAdd('sups', this.opts.curLang.supname, this.txtSup); this.buttonAwesome('subs', 'fa-subscript'); this.buttonAwesome('sups', 'fa-superscript'); }, txtSub: function() { this.execCommand('subscript', false); }, txtSup: function() { this.execCommand('superscript', false); } };