我想在CKEditor外观中禁用“切换到纯文本编辑器”。 禁用在CKEditor中切换到纯文本编辑器
唯一的问题是在CKEditor的系统设置中没有有效的选项,所以我想用CSS禁用它。这是问题。我无法将它展示给任何人,也不会听从我的规则。
下面是“切换到纯文本编辑器”
<a id="switch_edit-body-und-0-value" class="ckeditor_links" onclick="javascript:Drupal.ckeditorToggle(['edit-body-und-0-value','edit-body-und-0-summary'],'Switch to plain text editor','Switch to rich text editor');" href="javascript:void(0);" style="">Switch to plain text editor</a>
HTML和我已经通过以下测试中的所有类和id规则:
.ckeditor_links a {
display: none !important;
}
我!important
测试只是为了确保它会遵循该规则。
和ID一样。现在我测试了显示:没有任何CKEditor外观中的所有标签,它完美地工作,并且“切换到纯文本编辑器”消失了,所以我认为它与它不会响应类和ID有关?
我觉得它很有趣,它不会回应这个类,但所有<a>
标签它会?有线? 可以尝试通过这个帮助我吗?
非常感谢你,
“切换到纯文本编辑器”不是CKEditor选项。 CKEditor不显示这样的文本 - 这是一些自定义添加。 – Reinmar
然后,这是所见即所得模块 – user2945872