CkEditor - 如何在对话框中添加链接属性

时间:2017-06-19 08:41:10

标签: javascript jquery ckeditor

我在我的网站上使用CKEditor。

我需要在链接插件中为follow属性添加select输入

即。 < a href =“link_target”rel =“nofollow”>超链接< / A>

Customize from left to right

我尝试了很多次。但尚未实施。

如何自定义选择选项?

这是我自定义的link.js代码

/ckeditor/plugins/link/dialogs/link.js

            {
                id: "followOptions",
                type: "select",
                label: b.followOptions,
                "default": "doFollow",
                items: [
                    [b.doFollow, "doFollow"],
                    [b.noFollow, "noFollow"]
                ], setup: function (a) {
                    this.setValue(a.followOptions || "")

                }, commit: function (a) {
                    a.followOptions = this.getValue()
                }
            }

0 个答案:

没有答案
相关问题