我使用内联Ckeditor
来编辑内容。默认情况下,内联编辑器通过双击与contenteditable="true"
的div
激活。当我点击一个按钮时,我想激活这个内联编辑器,并且当我点击另一个按钮时隐藏它。 下面是HTML代码的例子:Ckeditor:根据需要显示和隐藏内联工具栏
<html>
<head>
<script src="ckeditor/ckeditor.js"></script>
</head>
<body>
<div id="first" contenteditable="true">first</div>
<div id="second" contenteditable="true">second</div>
<input type="button" value="show inline editor">
<input type="button" value="hide inline editor">
</body>
</html>
的jsfiddle显示了默认的行为,我想有http://jsfiddle.net/vdRYL/
结束这将是容易让我们来解决这个问题,如果你能创造出CKEDITOR的默认行为的jsfiddle(jsfiddle.net)。 – Rao
感谢您的回复和编辑。这里是jsfiddle:http://jsfiddle.net/vdRYL/ – user2265529