is there a way that I can use ckeditor as the textarea within a bootbox dialog? I am using bootbox for other areas with inputs but the only bit I cannot get to work is the textarea. The textarea does show in the dialog, but it is not replaced with ckeditor. Any help with this would be appreciated. Thanks
2 回答
0
you can try to use this:
CKEDITOR.ui.dialog.textarea(dialog, elementDefinition, htmlList)
or visit here:http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.ui.dialog.textarea.html
hope it helps.
于 2014-08-21T08:52:54.273 回答
0
我设法通过使用 AJAX 将带有 textarea 的表单加载到引导框对话框中来做到这一点。我只需要在我的 ajax 响应中包含以下内容。
<script>CKEDITOR.replaceAll(function( textarea, config )</script>
于 2014-08-21T09:03:51.977 回答