[英]after many attempts, failed. Edit ckeditor
I'm a newbie in front-end and need to use ckeditor but with some mods here is my code我是前端的新手,需要使用 ckeditor 但这里有一些模组是我的代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CKEditor Example</title>
<script src="https://cdn.ckeditor.com/4.10.1/standard/ckeditor.js"></script>
</head>
<body>
<textarea name="text_editor"></textarea>
<script>
//-------------------------------------
CKEDITOR.replace( 'text_editor' );
width: '70%';
CKEDITOR.config.removeButtons = 'Image';
//-------------------------------------
</script>
</body>
</html>
I need to remove 'Image' button but I couldn't.我需要删除“图像”按钮,但我不能。
why the code below doesn't work?为什么下面的代码不起作用?
CKEDITOR.config.removeButtons = 'Image';
please help请帮忙
Replace CKEDITOR.config.removeButtons = 'Image';
替换
CKEDITOR.config.removeButtons = 'Image';
with和
CKEDITOR.config.removePlugins = 'image';
CKEDITOR.removeButtons = "image";
If you need to remove multiple plugins, separate them with commas.如果您需要删除多个插件,请用逗号分隔它们。
CKEDITOR.config.removePlugins = 'image, spellchecker';
CKEDITOR.removeButtons = "image, spellchecker";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.