修正tinyMCE的Tool > Source Code在Bootstrap 的Modal Window下不能正常工作问题

昨天有同事反映说后台做行程的一个编辑器, 出问题了。一看tinyMCE的Plugin  Tool > Source Code 在BootStrap的Modal Window下不能编辑.

tinymce_error

 

 

 

 

 

 

 

一开始以为是Chrome兼容性问题, 因为在console log发现了以下错误。加上了async: false还是不管用。

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.

send @ jquery-1.11.1.min.js:4

 

经过Google一番, 原来是BootStrap的Propagation问题导致的,加上以下代码,问题解决。

// prevent Bootstrap from hijacking TinyMCE modal focus
$(document).on(‘focusin’, function(e) {
if ($(e.target).closest(“.mce-window”).length) {
e.stopImmediatePropagation();
}
});

1,026 Comments

  1. Woah! I’m really enjoying thhe template/theme oof this website.
    It’s simple, yet effective. A lott of times it’s very hard to get that “perfect balance”between sperb usability and vixual appeal.
    I must say you’ve dpne a great job with this. Also, the blog loads very fast forr me on Safari.
    Superb Blog!
    beasiswa india 2016

  2. hey there and thank you ffor your info – I have
    definitely picked upp something new from right here.
    I did however expertise some technical points using this site, aas I experienced to reload the
    site many times previous to I could get it to load correctly.
    I had been wondering if your hosting is OK?
    Not that I’m complaining, but slow loading instances
    times will often affect your placement in google and could damage your high quality score if advertising and marketing wiith Adwords.
    Anyway I am adding this RSS to my email and can lookk out
    for a lot more off your respective intriguing content.
    Ensure that yyou update this again ery soon.
    mata kuliah manajemen pendidikan

  3. Earn on the Internet from $ 5000 per day, do not strain, the details are here: http://pagebin.com/wTiaNgOS

    online casino deposit with paypal, how to make money with uber and lyft, online casino malaysia maybank, paypal send iban, paypal transfer points to credit card, credit card transfer money, credit card balance transfer rates nz, casino games online in usa
    , casino filipino online application, how to make a lot of money with adsense, how to make money online 100 real, casino online free 3 card poker, hsbc credit card balance transfer singapore, make money online selling photos, free casino online no deposit required, moneygram money transfer service, is there any legitimate ways to make money online, earn money parttime from home uk, online casino no deposit bonus code
    , paypal transfer money to bank of america, how to buy play money on pokerstars, online casino sk, best system to make money online, how to earn money from home online, how to make some extra cash on the side, how to make money with online marketing, how much money can apps make from ads

  4. I’ve been surfing online more han 3 hours today, yet I never found any
    intreresting article like yours. It’s pretty worth enough for me.
    In my view, if all web owners and bloggers made good content as you did,
    the internet will be much more useful than ever before.

  5. Thank you a lot for sharing this wit all people you really
    understand what you’re speaking approximately! Bookmarked.
    Please additionally consult with my site =). We could
    have a hyperlink exchange contract between us

  6. Howdy! Ѕomeone in my Myspace gгoup shared tһis site
    wіth uѕ sо I came to check іt out. Ι’m definitеly enjoying tһe information. I’m book-marking and wіll Ƅе tweeting tһis
    to my followers! Wonderful blog and wonderful design ɑnd style.

  7. Ι was more than happʏ to discover this great site. I wɑnted to tһank yoᥙ foг ones
    time for this fantastic гead!! I definiteⅼy ⅼiked every little bіt of it ɑnd I hаѵe you
    book-marked to seе new stuff оn уour web site.

  8. I do not even know how I ended up here, but I
    thought this post was good. I do not know who
    you are but certainly you’re going to a famous blogger if you aren’t already
    😉 Cheers!

  9. First of all Iwant to say excellent blog!

    I had a quick question that I’d like to ask if you don’t mind.

    I was interested to find out how you center yourself and clear your head prior
    to writing. I’ve had a tough time clearing my mind in getting my thoughts
    out.I do enjoy writing but it just seems like the first 10 to 15 minutes are lost just trying to
    figure out how to begin. Any ideas or tips?
    Many thanks!