Issue in Dialog plugin - declaring i as global variable wrongly
|Reported by:||benny||Owned by:|
|Component:||UI : Dialogs||Version:||3.6.2|
The file ckeditor/_source/plugins/dialog/plugin.js, line 228 where a single letter variable “i” is used without “var” thereby making it appear under the global scope. That causes problem in the minified ckeditor.js because "i" is referred as CKEDITOR.config when init the instance. After method to removing the cached tabs of dialog is called, the new editor instance can not be created because the "i" is a int value instead of CKEDITOR.config object.
The steps to reproduce:
- Create a editor instacne.
- Open one dialog plugin like images, link or table and close.
- Create another editor instance in the same page
- It fails to create another editor instance with js error 'z is undefined or not an object' in ckeditor.js