Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:52:34+00:00 2026-06-13T07:52:34+00:00

I have TinyMCE initializing textareas that have been loaded via AJAX callback, in a

  • 0

I have TinyMCE initializing textareas that have been loaded via AJAX callback, in a colorbox modal window containing jQuery UI tabs panels. The panel that the textareas are being loaded into are scrollable (overflow-y:auto). However, it seems that when I initialize TinyMCE on these new textareas, it scrolls about halfway down to one of the lower textareas on the list, and initializes them correctly, but you can no longer scroll the container panel’s div in Chrome. You can still scroll the panel’s div in Firefox and IE, but not in Chrome.

My AJAX call:

function getStuff(id){
        $.ajax({
            type: 'POST',
            url: '/ajax/get_stuff',
            data: {id: id},
            beforeSend:function(){  
                $('#panel').html('Loading...');                                 
            },
            success:function(resp){             
                $('#panel').html(resp); 
                ckInit();
            },
            error:function(){}
        }); 
    }

and the initialize function:

function ckInit(){
    var config = {              
             extraPlugins : 'autogrow',
             autoGrow_onStartup : true ,
             removePlugins : 'resize'               
        };
    $("textarea.ck").each(function() {              
        if (typeof(CKEDITOR.instances[this.id]) == 'undefined') {           
            CKEDITOR.replace(this.id, config);
        } else {
            CKEDITOR.instances[this.id].destroy(true);
            CKEDITOR.replace(this.id, config);
        }           
    });
}

If any other info would be helpful, please let me know. And, thanks in advance!

UPDATE
I had a feeling Colorbox had something to do with it, so I tried loading the instances instead in the main window, to the same exact result. The container div is scrolled down an arbitrary amount, and the scrollbar freezes. Trying to move it up and down will not scroll.

I tried replacing TinyMCE with CKeditor, and strangly, same exact problem. Which makes me feel like I’m initializing them wrong, or something…

Any ideas?

UPDATE 4/28
It seems that if I initialize the text areas individually, the scrollbar does not freeze. However, when I initialize the textareas based on the class selector, as shown in the example above, it does.

Another weird behavior: If I click back and forth to select one of the editors and then another, and if I do this a few times, it unlocks the scroll bar. Somehow, the act of switching the current editor a few times frees it up.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:52:36+00:00Added an answer on June 13, 2026 at 7:52 am

    I am having the same issue, did either of you find a solution to this?

    EDIT: So it appears that it is definitely the hash in the URL causing the problem. I am not happy about the following solution, but it does work…

    $('body').on('click', 'a', function(e){
      if( $(this).attr('href') === '#' ) e.preventDefault(); 
    });
    

    Hope that helps someone, but please if anyone figures out a better solution please let me know.

    I found the following articles which may be of assistance:

    http://cksource.com/forums/viewtopic.php?t=25351

    https://github.com/cleditor/cleditor/issues/10

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tinyMCE textarea #frmbody and am using the jquery instance of it.
I'm using the jQuery plugin for TinyMCE and have had a hard time trying
I have three textareas using tinymce as text area. They all work in chrome
I have a Django form using textareas and TinyMCE for text entry. I would
I have a TinyMCE widget that is limited to only <p> tags and non-block-level
I have a tinyMCE plugin (for the post/page editor) that I am loading from
I have a problem with FCKEditor and TinyMCE. I need a WYSIWYG editor that
I'm using tinymce jquery plugin and trying to access the api after initializing an
i have a TinyMCE implementation on my website that works great. But if the
I have a TinyMCE editor that I need to add a tag to in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.