PHP Classes

File: Application/Module/Core/Public/Js/tinymce/plugins/directionality/plugin.min.js

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Application/Module/Core/Public/Js/tinymce/plugins/directionality/plugin.min.js   Download  
File: Application/Module/Core/Public/Js/tinymce/plugins/directionality/plugin.min.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 778 bytes
 

Contents

Class file image Download
tinymce.PluginManager.add("directionality", function(a){function b(b){var c, d = a.dom, e = a.selection.getSelectedBlocks(); e.length && (c = d.getAttrib(e[0], "dir"), tinymce.each(e, function(a){d.getParent(a.parentNode, "*[dir='" + b + "']", d.getRoot()) || (c != b?d.setAttrib(a, "dir", b):d.setAttrib(a, "dir", null))}), a.nodeChanged())}function c(a){var b = []; return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "), function(c){b.push(c + "[dir=" + a + "]")}), b.join(",")}a.addCommand("mceDirectionLTR", function(){b("ltr")}), a.addCommand("mceDirectionRTL", function(){b("rtl")}), a.addButton("ltr", {title:"Left to right", cmd:"mceDirectionLTR", stateSelector:c("ltr")}), a.addButton("rtl", {title:"Right to left", cmd:"mceDirectionRTL", stateSelector:c("rtl")})});