MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isEmotion

Function isEmotion

static/wangEditor/js/wangEditor.js:8081–8097  ·  view source on GitHub ↗
(imgSrc)

Source from the content-addressed store, hash-verified

8079
8080 // 判断img是否是一个表情
8081 function isEmotion(imgSrc) {
8082 var result = false;
8083 if (!editor.emotionUrls) {
8084 return result;
8085 }
8086 $.each(editor.emotionUrls, function (index, url) {
8087 var flag = false;
8088 if (imgSrc === url) {
8089 result = true;
8090 flag = true;
8091 }
8092 if (flag) {
8093 return false; // break 循环
8094 }
8095 });
8096 return result;
8097 }
8098
8099 // click img 事件
8100 $currentTxt.on('mousedown', 'img', function (e) {

Callers 1

wangEditor.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected