File "loader-jquery-trumbowyg.min.js"
Full path: /home/webide/saman-clinic.ir/wp-content/plugins/wp-shamsi/lib/Options/assets/loader-jquery-trumbowyg.min.js
File size: 1.11 KB
MIME-type: application/javascript
Charset: utf-8
!function(t,e,o,n){var i="exopiteSOFTrumbowyg";function r(e,o){this.element=e,this._name=i,this.$element=t(e),this.init()}r.prototype={init:function(){var t=this;t.trumbowygOptions=new Object,t.trumbowygOptions.svgPath=t.$element.find(".trumbowyg-js").data("icon-path"),t.trumbowygOptions.btnsDef={image:{dropdown:["insertImage","base64"],ico:"insertImage"}},t.trumbowygOptions.btns=[["viewHTML"],["undo","redo"],["formatting"],["strong","em"],["link"],["image"],["unorderedList","orderedList"],["foreColor","backColor"],["preformatted"],["fullscreen"]],t.$element.find(".trumbowyg-js").not(":disabled").trumbowyg(t.trumbowygOptions);t.$element.closest(".exopite-sof-group");t.$element.on("exopite-sof-field-group-item-added-after",function(e,o){console.log("test exopite-sof-field-group-item-added-after"),o.find(".trumbowyg-js").not(":disabled").trumbowyg(t.trumbowygOptions)})}},t.fn[i]=function(e){return this.each(function(){t.data(this,"plugin_"+i)||t.data(this,"plugin_"+i,new r(this,e))})}}(jQuery,window,document),function(t){"use strict";t(document).ready(function(){t(".exopite-sof-wrapper").exopiteSOFTrumbowyg()})}(jQuery);