Results 1 to 2 of 2

Thread: [CLOSED][DUP][3.??] HTMLEditor jQuery adapter

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User Mpdreamz's Avatar
    Join Date
    May 2009
    Posts
    7
    Vote Rating
    0
      0  

    Default [DUP][3.??] HTMLEditor jQuery adapter

    I'm using extJS 3.0 and the jquery adapter while trying to include an HTMLEditor i get an Ext.TaskMgr is undefined error.

    I was able to fix this by copying the following:
    Code:
    Ext.util.TaskRunner = function(interval) {
        interval = interval || 10; var tasks = [], removeQueue = [], id = 0, running = false, stopThread = function() { running = false; clearInterval(id); id = 0; }, startThread = function() { if (!running) { running = true; id = setInterval(runTasks, interval); } }, removeTask = function(t) { removeQueue.push(t); if (t.onStop) { t.onStop.apply(t.scope || t); } }, runTasks = function() {
            var rqLen = removeQueue.length, now = new Date().getTime(); if (rqLen > 0) {
                for (var i = 0; i < rqLen; i++) { tasks.remove(removeQueue[i]); }
                removeQueue = []; if (tasks.length < 1) { stopThread(); return; } 
            }
            for (var i = 0, t, itime, rt, len = tasks.length; i < len; ++i) {
                t = tasks[i]; itime = now - t.taskRunTime; if (t.interval <= itime) { rt = t.run.apply(t.scope || t, t.args || [++t.taskRunCount]); t.taskRunTime = now; if (rt === false || t.taskRunCount === t.repeat) { removeTask(t); return; } }
                if (t.duration && t.duration <= (now - t.taskStartTime)) { removeTask(t); } 
            } 
        }; this.start = function(task) { tasks.push(task); task.taskStartTime = new Date().getTime(); task.taskRunTime = 0; task.taskRunCount = 0; startThread(); return task; }; this.stop = function(task) { removeTask(task); return task; }; this.stopAll = function() {
            stopThread(); for (var i = 0, len = tasks.length; i < len; i++) { if (tasks[i].onStop) { tasks[i].onStop(); } }
            tasks = []; removeQueue = [];
        };
    }; Ext.TaskMgr = new Ext.util.TaskRunner();
    from the ext-base connector into the jquery adapter, this seems to have fixed the HTMLEditor. Hope this helps others.

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    132
      0  

    Default

    Duplicate of this report.

    The ext-jquery-adapter.js build script is missing several files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •