Opened 15 years ago
Closed 15 years ago
#4605 closed Bug (duplicate)
Ajax: Rich combo does not expand for every second or following editor
Reported by: | Niek Kouwenberg | Owned by: | |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | |
Component: | General | Version: | 3.0.1 |
Keywords: | Cc: |
Description
When dynamicly creating a CKEditor instance, removing it and again creating an instance, the rich combo boxes (fomat, style, ...) no longer work. Not in IE, not in Firefox.
I thought it was my faulty implementation, but it seems the Ajax example in the _samples dir has the same problem.
Steps to reproduce:
- Open the ckeditor/_samples/ajax.html
- Click "Create Editor"
- Click on any rich combo box. It will open.
- Click "Remove Editor"
- Click "Create Editor"
- Click on any rich combo box. It no longer opens.
Firefox gives me the following error:
Error: this.$ is undefined Source File: ckeditor/ckeditor.js Line: 11
As a work-around I tried deleting the editor all together, which seems to work as long as I do NOT call destroy() on the editor:
CKEDITOR.instancesname?.destroy(); delete CKEDITOR.instancesname?;
This however causes other problems, which destroy() handles (e.g. events), so this has not worked for me.
Change History (2)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #4552 ( Float panel menu will not respond after the editor instance is re-created.)
Richcombo uses floatpanel
New information:
When disabling the "this.theme.destroy(this);" call in the editor's destroy() method, this problem no longer occurs, so I'm guessing the default's theme destroy() method causes the problem...