✏️ 正在编辑: typography-sets.js
路径:
/home/lssfapb/www/wp-content/themes/Avada/includes/lib/inc/fusion-app/options/typography-sets.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
/* global AwbTypographySet */ var FusionPageBuilder = FusionPageBuilder || {}; FusionPageBuilder.options = FusionPageBuilder.options || {}; FusionPageBuilder.options.fusionTypographySetsField = { /** * Initialize the typography field. * * @since 2.0.0 * @param {Object} $element - The element jQuery object. * @return {void} */ optionTypographySets: function( $element ) { var $set; $element = 'undefined' !== typeof $element && $element.length ? $element : this.$el; $set = $element.find( '.fusion-builder-option.typography-sets' ); if ( ! $set.length ) { return; } // Init sets. if ( _.isUndefined( window.awbTypographySelect ) || _.isUndefined( window.awbTypographySelect.webfonts ) ) { jQuery.when( window.awbTypographySelect.getWebFonts() ).done( function() { new AwbTypographySet( $set[ 0 ], this ); } ); } else { new AwbTypographySet( $set[ 0 ], this ); } } };
💾 保存文件
← 返回文件管理器