admin/view/javascript/summernote/summernote-image-attributes.js
(开头部分) 32KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* Summernote Image Attributes
* https://github.com/StudioJunkyard/summernote-image-attributes
*/
(function(factory){
if(typeof define==='function'&&define.amd){
define(['jquery'],factory);
}else if(typeof module==='object'&&module.exports){
module.exports=factory(require('jquery'));
}else{
factory(window.jQuery);
}
}(function($){
var readFileAsDataURL=function(file){
return $.Deferred(function(deferred){
$.extend(new FileReader(),{
onload:function(e){
var sDataURL=e.target.result;
deferred.resolve(sDataURL);
},
onerror:function(){
deferred.reject(this);
}
}).readAsDataURL(file);
}).promise();
};
$.extend(true,$.summernote.lang,{
'en-US':{ /* English */
imageAttributes:{
dialogTitle:'Image Attributes',
tooltip:'Image Attributes',
pluginImageTitle:'Image Attributes',
pluginLinkTitle:'Link Attributes',
title:'Title',
src:'Source',
srcHelp:'Selecting an image will replace existing image with an Inlined Image.',
alt:'Alt',
class:'Class',
classSelect:'Select Class',
style:'Style',
role:'Role',
href:'URL',
target:'Target',
linkClass:'Class',
linkRole:'Role',
rel:'Rel',
relBlank:'Do not use Rel Attribute',
relAlternate:'Alternate: Links to an alternate version of the document',
relAuthor:'Author: Links to the Author of the Document',
relBookmark:'Bookmark: Permanent URL used for Bookmarking',
relHelp:'Help: Links to a Help Document',
relLicense:'License: Links to copyright information for the document',
relNext:'Next: The next document in a selection',
relNofollow:'NoFollow: Links to an unendorsed document, like a paid link, also stops Search Engines following this link',
relNoreferrer:'NoReferrer: Specifies that the browser should not send a HTTP Header',
relPrefetch:'PreFetch: Specifies that the target document should be cached',
relPrev:'Prev: The previous document in a selection',
relSearch:'Search: Links to a search tool for the document',
relTag:'Tag: A tag (Keyword) for the current document'
}
后面还有 593 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
