【问题标题】:Ckeditor error when in bootstrap modal处于引导模式时的 Ckeditor 错误
【发布时间】:2015-01-22 12:10:45
【问题描述】:

我想在引导模式中使用 ckeditor,但是当我尝试使用它时它不起作用。如果单击任何图标,它会在控制台中出现错误,例如Uncaught TypeError: Cannot read property 'getSelection' of undefined,我无法在其中写入任何内容。但我可以在页面上很好地使用它。

<script src="../../assets/global/plugins/bootstrap-modal/js/bootstrap-modalmanager.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/bootstrap-modal/js/bootstrap-modal.js" type="text/javascript"></script>
<script type="text/javascript" src="../../assets/global/plugins/ckeditor/ckeditor.js"></script>


<div id="detail" class="modal fade form"  tabindex="-1" data-backdrop="static" data-keyboard="false"  data-width="800">
  <div class="modal-body">
 <textarea rows="2" class="ckeditor form-control input-inline input-medium " name="note"></textarea>
 </div>
</div>

【问题讨论】:

标签: javascript jquery twitter-bootstrap modal-dialog ckeditor


【解决方案1】:

我想添加jquery js脚本,放在其他js脚本前面,比如

  <script type='text/javascript' src='http://code.jquery.com/jquery-1.11.0.js'></script>

【讨论】:

  • 我都有我只是分享了部分代码,否则它在页面上不起作用,但有效。 juat 忘记删除 validate.js
  • 我认为这不太可能是原因,因为 CKEditor 不需要任何方式的 jquery。
猜你喜欢
  • 1970-01-01
  • 2023-03-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-03-09
  • 2021-12-07
相关资源
最近更新 更多