Fix a bug in modaleditor

-The modal editor multiselection editor was not working in any other browser except google chrome.