I developed a CKEditor plugin that fetches data via ajax to create RichCombo functionality. The plugin functions correctly, however, when there are multiple instances of the editor on a single page, each plugin ends up sending its own ajax request, leading to unnecessary extra load.
Initially, I attempted to check if the data had been saved in a global variable before making a request, but the ajax callback kept the data even after initializing all instances, resulting in an empty variable at all times.
I am unsure how to send just one request and share the retrieved data with all plugin instances.