Get value using jQuery:
1 |
CKEDITOR.instances['content'].getData() |
Reference:
Using ckEditor in bootstrap modal:
1 2 3 4 5 6 7 8 9 10 11 12 |
$.fn.modal.Constructor.prototype.enforceFocus = function () { var $modalElement = this.$element; $(document).on('focusin.modal', function (e) { var $parent = $(e.target.parentNode); if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length // add whatever conditions you need here: && !$parent.hasClass('cke_dialog_ui_input_select') && !$parent.hasClass('cke_dialog_ui_input_text')) { $modalElement.focus() } }) }; |
Reference: