我正在使用精彩的编辑器bootstrap-markdown但是他们会显示下面显示的编辑按钮列表
我想更改默认提醒按钮,该按钮会在您点击“添加网址”标记时显示。
答案 0 :(得分:2)
您可以在770
文件的行bootstrap-markdown.js
中对此进行编辑(具体取决于您要执行的操作)。
你会在那里找到这个代码块:
name: 'groupLink',
data: [{
name: 'cmdUrl',
title: 'URL/Link',
icon: 'icon icon-globe',
callback: function(e){
// Give [] surround the selection and prepend the link
var chunk, cursor, selected = e.getSelection(), content = e.getContent(), link
if (selected.length == 0) {
// Give extra word
chunk = 'enter link description here'
} else {
chunk = selected.text
}
link = prompt('Insert Hyperlink','http://')
如果此信息有用,请告知我们。