美文网首页
百度富文本编辑器UMditor 字体,段落,字号

百度富文本编辑器UMditor 字体,段落,字号

作者: NaN_4f61 | 来源:发表于2019-04-17 17:30 被阅读0次

下拉组件动态加载下标有问题

umeditor.js 修改tpl的值:

UM.ui.define(widgetName, (function(){

return {

tpl:"<ul class=\"dropdown-menu edui-combobox-menu<%if (comboboxName!=='') {%> edui-combobox-<%=comboboxName%><%}%>\" unselectable=\"on\" onmousedown=\"return false\" role=\"menu\" aria-labelledby=\"dropdownMenu\">" +

"<%if(autoRecord) {%>" +

"<%for( var i=0, len = recordStack.length; i<len; i++ ) {%>" +

"<%var index = recordStack[i];%>" +

"<li class=\"<%=itemClassName%><%if( selected == index ) {%> edui-combobox-checked<%}%>\" data-item-index=\"<%=index,index%>\" unselectable=\"on\" onmousedown=\"return false\">" +

"<span class=\"edui-combobox-icon\" unselectable=\"on\" onmousedown=\"return false\"></span>" +

"<label class=\"<%=labelClassName%>\" style=\"<%=itemStyles[ index ]%>\" unselectable=\"on\" onmousedown=\"return false\"><%=items[index]%></label>" +

"</li>" +

"<%}%>" +

"<%if( i ) {%>" +

"<li class=\"edui-combobox-item-separator\"></li>" +

"<%}%>" +

"<%}%>" +

"<%for( var i=0, label; label = items[i]; i++ ) {%>" +

"<li class=\"<%=itemClassName%><%if( selected == i ) {%> edui-combobox-checked<%}%> edui-combobox-item-<%=i,i%>\" data-item-index=\"<%=i,i%>\" unselectable=\"on\" onmousedown=\"return false\">" +

"<span class=\"edui-combobox-icon\" unselectable=\"on\" onmousedown=\"return false\"></span>" +

"<label class=\"<%=labelClassName%>\" style=\"<%=itemStyles[ i ]%>\" unselectable=\"on\" onmousedown=\"return false\"><%=label%></label>" +

"</li>" +

"<%}%>" +

"</ul>"

相关文章

网友评论

      本文标题:百度富文本编辑器UMditor 字体,段落,字号

      本文链接:https://www.haomeiwen.com/subject/ziguqftx.html