1

I want to use ckeditor in bootstrap modal, but when I try to use it doesn't work. If click any icons, it gives an error in console like Uncaught TypeError: Cannot read property 'getSelection' of undefined and I cannot write anything in it. But I can use it on the page well.

<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>

1 Answers1

0

I would like to add jquery js script and put it in the front of other js scripts,such as

  <script type='text/javascript' src='http://code.jquery.com/jquery-1.11.0.js'></script>
Lumi Lu
  • 3,289
  • 1
  • 11
  • 21