gpt4 book ai didi

pagedown - 隐藏翻页按钮

转载 作者:行者123 更新时间:2023-12-02 00:15:44 25 4
gpt4 key购买 nike

我正在使用 pagedown现在在我的网站上,到目前为止它很棒,唯一的细节是它不是面向编程的网站,所以我想删除“代码”按钮。

有什么办法可以做到吗?我尝试使用 CSS 隐藏按钮,但 html 具有内联样式“left: xxx”,我无法使用 CSS 进行更改。

提前致谢!

最佳答案

如果您打开 Markdown.Editor.js,并滚动到大约第 1360 行(它因您使用的版本而异),您将看到一个区域:

group1 = makeGroup(1);
buttons.bold = makeButton("wmd-bold-button", "Bold - Ctrl+B", "icon-bold", bindCommand("doBold"), group1);
buttons.italic = makeButton("wmd-italic-button", "Italic - Ctrl+I", "icon-italic", bindCommand("doItalic"), group1);

group2 = makeGroup(2);
buttons.link = makeButton("wmd-link-button", "Link - Ctrl+L", "icon-link", bindCommand(function (chunk, postProcessing) {
return this.doLinkOrImage(chunk, postProcessing, false);
}), group2);
buttons.quote = makeButton("wmd-quote-button", "Blockquote - Ctrl+Q", "icon-blockquote", bindCommand("doBlockquote"), group2);
buttons.code = makeButton("wmd-code-button", "Code Sample - Ctrl+K", "icon-code", bindCommand("doCode"), group2);
buttons.image = makeButton("wmd-image-button", "Image - Ctrl+G", "icon-picture", bindCommand(function (chunk, postProcessing) {
return this.doLinkOrImage(chunk, postProcessing, true);
}), group2);

等等等等。只需引用您不想要的按钮即可。

或者,您可以简单地省略整个 wmd-buttons div,只使用编辑器和预览组件。

关于pagedown - 隐藏翻页按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13290729/

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