To change the z-index of the CKEditor image popup window, you can use CSS to set a higher z-index value for the corresponding CSS class or ID selector. For example, if the class or ID for the image popup window is ".ck-editor__popup" or "#ck-editor__popup", respectively, and the modal has a lower z-index value, you can use the following CSS: