<a {title_style(ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 10: r[style])}̲ href="{r[url]}" title="{ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 9: r[title]}̲">{str_cut(r[title],22,'')}</a>
在a标签中使用{title_style($r[style])} 时,后台标题已设置过颜色信息的clear无法清除
在文件 /statics/js/colorpicker.js
找到末尾代码:
function clear_title() { ParseError: KaTeX parse error: Expected 'EOF', got '#' at position 3: ('#̲title').css('co…('#title_colorpanel').html(' '); }
修改为:
function clear_title() { ParseError: KaTeX parse error: Expected 'EOF', got '#' at position 3: ('#̲title').css('co…('#title_colorpanel').html(' '); $('#style_color').val(' '); }
最后,更新系统全站缓存!