Issue Bug Closed

#19798Cannot Load Multiple RTEs via AJAX

Jeff Segars 01/12/09, 18:23 updated 10/02/18, 12:30

Description

In the new frontend editing concept for 4.3, we’re loading the RTE via AJAX and displaying it in a lightbox.
On the first load of the RTE, HTMLArea._editorEvent is created as a generic event handler. When the RTE is closed, the HTMLArea.cleanup() method is called to free many variables, including HTMLArea._editorEvent which is set to null. This causes problems with the second RTE load when HTMLArea has already been initialized but _editorEvent is now null rather than a true method.

The solution is to remove the null assignment in HTMLArea.cleanup(). At the same time, the null assignment for HTMLArea.onload can be removed also since it could cause similar issues.

(issue imported from #M10105)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.