gpt4 book ai didi

ckeditor - 如何从CKeditor中的 "link to anchor"编辑器中删除 "Link"

转载 作者:行者123 更新时间:2023-12-02 19:51:51 33 4
gpt4 key购买 nike

基本上,我删除了 anchor 按钮,因此链接窗口中不应该有指向 anchor 选项的链接。

有什么方法可以删除该下拉选项

enter image description here

最佳答案

想通了

if ( dialogName == 'link' )
{
var infoTab = dialogDefinition.getContents( 'info' );
var linktypeField = infoTab.get( 'linkType' );

/* Remove it from the array of items */
linktypeField['items'].splice(1, 1);

}

关于ckeditor - 如何从CKeditor中的 "link to anchor"编辑器中删除 "Link",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6791652/

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