自定义markitUp工具栏 [英] Customizing the markitUp Toolbar

查看:105
本文介绍了自定义markitUp工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何真正自定义 markitup 工具栏吗?当然,您可以从mySettings配置变量中删除项目,但这会使工具栏出现乱码.您最终得到了由错误的按钮表示的正确的工具栏项目.有什么想法吗?

Has anyone figured out how to truely customize the markitup toolbar? Sure you can remove items from the mySettings config variable but that somehow garbles the toolbar. You end up with the right toolbar items represented by the wrong buttons. Any ideas?

推荐答案

我发现将自己的按钮添加到工具栏非常简单.只需在className:'class name'中添加options/mySettings config ..示例如下所示,用于粗体标记

I've found it pretty easy to add my own buttons to the toolbar.. just add the className: 'name of class' in with the options/ mySettings config.. example is below for the bold tag

{name:'Bold', key:'B', className: 'pBold', openWith:'(!(<strong>|!|<b>)!)', closeWith:'(!(</strong>|!|</b>)!)' },

然后在我的样式表中

.markItUp .pBold a {
background-image:url(images/bold.png);
}

这篇关于自定义markitUp工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆