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