gpt4 book ai didi

javascript - 如何从 bootstrap-markdown 配置自动显示按钮?

转载 作者:行者123 更新时间:2023-11-29 22:11:04 25 4
gpt4 key购买 nike

我用的是神器编辑器bootstrap-markdown但它们显示了如下所示的编辑按钮列表 Edit Buttons

我想更改当您单击“添加 Url”标签时显示的默认警报按钮。

最佳答案

您可以在 bootstrap-markdown.js 文件的 770 行中编辑它(取决于您想要做什么)。

你会在那里找到这段代码:

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://')

如果此信息有帮助,请告诉我们。

关于javascript - 如何从 bootstrap-markdown 配置自动显示按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18017092/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com