Code edited in the cleditor library, prevents other usages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
The "cleditor" vendor'ed library has been modified locally [0].
The change:
$(window)
// <snip>
// CHM Note MonkeyPatch: if the DOM is not remove, refresh the cleditor
}
});
So when the window is resized, the editors get resized. This works with the actual widget, but prevents it to works when we want to use cleditor in another way (example: dialog for translations [1]).
The problem is that at a point, editor is still there in the bound function and has been destroyed when the refresh function is called, so we get: Uncaught TypeError: Cannot read property 'document' of null (at line 822 [2])
[0] http://
[1] http://
[2] http://
summary: |
- Edition of the cleditor library prevent other usages + Code edited in the cleditor library, prevents other usages |