2017-03-02 43 views
12

मैं बूटस्ट्रैप मोडल लेकिन स्वरूप और आकार ड्रॉप अंदर CKEditor खोला है नीचे ठीक से काम नहीं कर रहे हैं। जब मैं आकार या प्रारूप ड्रॉप डाउन पर क्लिक करता हूं तो यह खुलता है और तुरंत बंद हो जाता है, मैंने पढ़ा है कि यह बूटस्ट्रैप मोडल के लिए ckeditor में एक बग है। मुझे इसके लिए समाधान ऑनलाइन मिला लेकिन यह काम नहीं कर रहा है।CKeditor बूटस्ट्रैप मोडल पर इस मुद्दे ड्रॉप डाउन (ओपन और क्लिक पर तुरंत पास)

समाधान मैं काम कर ऑनलाइन और नहीं मिला: -:

$scope.emailMsgSetting = function(msgId, headerName) { 
    $ocLazyLoad.load({ 
     name: 'emailSettingsModule', 
     files: ['/doc/jsp/portal/viewMessageSettings.js'] 
    }).then(function() { 
     var url = makeURL("/doc/jsp/portal/viewMessageSettings.jsp?"); 
     $scope.dataURL = url; 
    }, function(e) { 
     console.log(e); 
    }); 
} 

JSP मैं कहाँ लागू कर दिया है सी.के. संपादक

<div class="col-sm-11 nopadright" ng-if="showckeditor"> 
    <textarea ng-model="$parent.msgTypeBody" ck-editor insert-tag="strTagName" height="ckEditorheight" extra-plugins= "strTagName"></textarea> 
    </div> 

$.fn.modal.Constructor.prototype.enforceFocus = function() { 
    modal_this = this 
    $(document).on('focusin.modal', function(e) { 
     if (modal_this.$element[0] !== e.target && !modal_this.$element.has(e.target).length && 
      !$(e.target.parentNode).hasClass('cke_dialog_ui_input_select') && 
      !$(e.target.parentNode).hasClass('cke_dialog_ui_input_text')) { 
      modal_this.$element.focus() 
     } 
    }) 
    }; 

जहाँ मैं jsp और जहां सी.के. संपादक फोन से जे एस

धन्यवाद ..

+0

बूटस्ट्रैप का कौन सा संस्करण आप उपयोग कर रहे हैं? – vickisys

+0

@ विकिसिस बूटस्ट्रैप v3.2.0 – pise

+0

आपकी साइट से कोई भी लाइव पेज इसे जांचने के लिए? –

उत्तर

0
$.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() 
     } 
    }) 
}; 
संबंधित मुद्दे