WebRoot/admin/assets/js/pages/form-editors.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
SummerNote
*/
(function( $ ) {
'use strict';
if ( $.isFunction($.fn[ 'summernote' ]) ) {
$(function() {
$('[data-plugin-summernote]').each(function() {
var $this = $( this ),
opts = {};
var pluginOptions = $this.data('plugin-options');
if (pluginOptions)
opts = pluginOptions;
$this.themePluginSummerNote(opts);
});
});
}
}).apply(this, [ jQuery ]);
(function(theme, $) {
theme = theme || {};
var instanceName = '__summernote';
var PluginSummerNote = function($el, opts) {
return this.initialize($el, opts);
};
PluginSummerNote.defaults = {
onfocus: function() {
$( this ).closest( '.note-editor' ).addClass( 'active' );
},
onblur: function() {
$( this ).closest( '.note-editor' ).removeClass( 'active' );
}
};
PluginSummerNote.prototype = {
initialize: function($el, opts) {
if ( $el.data( instanceName ) ) {
return this;
}
this.$el = $el;
this
.setData()
.setOptions(opts)
.build();
return this;
},
后面还有 136 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。