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

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

umeditor.js 修改tpl的值:

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

return {

tpl:"

    edui-combobox-<%=comboboxName%><%}%>\" unselectable=\"on\" onmousedown=\"return false\" role=\"menu\" aria-labelledby=\"dropdownMenu\">" +

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

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

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

    "

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

    "" +

    "" +

    "

  • " +

    "<%}%>" +

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

    "

  • " +

    "<%}%>" +

    "<%}%>" +

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

    "

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

    "" +

    "" +

    "

  • " +

    "<%}%>" +

    "

"

你可能感兴趣的:(百度富文本编辑器UMditor 字体,段落,字号)