简体   繁体   English

删除或自定义CKEditor Mathjax插件中的链接

[英]Remove OR Customize Link in CKEditor Mathjax Plugin

I am trying to remove / edit the link in CKEditor, have gone through http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-mathJaxClass , couldn't find any properties that allows to customize / edit the link. 我正在尝试删除/编辑CKEditor中的链接,已通过http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-mathJaxClass ,找不到任何允许自定义/编辑的属性链接。

MatchJax CKEditor插件

Edit the dialog file mathjax.js under ckeditor/plugins/mathjax/dialogs/ and remove the documentation element. 编辑ckeditor/plugins/mathjax/dialogs/下的对话框文件mathjax.js并删除文档元素。

This is the part you need to remove or comment out: 这是您需要删除或注释掉的部分:

{
    id: 'documentation',
    type: 'html',
    html:
        '<div style="width:100%;text-align:right;margin:-8px 0 10px">' +
            '<a class="cke_mathjax_doc" href="' + lang.docUrl + '" target="_black" style="cursor:pointer;color:#00B2CE;text-decoration:underline">' +
                lang.docLabel +
            '</a>' +
        '</div>'
},

Delete your browser cache before testing. 在测试之前,请删除浏览器缓存。

That link has class cke_mathjax_doc so you can set display:none in css or change it with jQuery. 该链接具有cke_mathjax_doc类,因此您可以在CSS中设置display:none或使用jQuery进行更改。 It's dirty but it should work. 它很脏,但可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM