当我们点击编辑器外部时如何隐藏ckeditor?
这是我的代码:
<div id="showReplyDiv">
<form id="test">
<div>
<textarea id="articleEditor" name="articleVO.articleC"></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'articleEditor',{customConfig : '/Forum/ckeditor/replyCKEditor.js'});
</script>
</div>
<div id="buttonArea">
<input type="button" id="doReply" value="submit"/>
<input type="button" id="cancel" value="cancel"/>
</div>
</form>
</div>
我想要它,以便当用户单击此 ckEditor
之外的任何位置时,我可以隐藏它。
Here is my code:
<div id="showReplyDiv">
<form id="test">
<div>
<textarea id="articleEditor" name="articleVO.articleC"></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'articleEditor',{customConfig : '/Forum/ckeditor/replyCKEditor.js'});
</script>
</div>
<div id="buttonArea">
<input type="button" id="doReply" value="submit"/>
<input type="button" id="cancel" value="cancel"/>
</div>
</form>
</div>
I want it so that when the user clicks anywhere outside of this ckEditor
, I can hide it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于点击对话框小部件,类似问题的解决方案对我不起作用。我最终使用了
The solution to a similar problem wasn't working for me due to clicks in dialog widgets. I ended up using