Explanation of drag-drop variables in rich text editor

You don’t explain IMAGE_EXTENSIONS in this example.

What is it?

IMAGE_EXTENSIONS is simply a constant variable, which in this case is a list of strings. You could set it to whatever extensions you want or instead you could manually pass a list to the code where this appears lower down in the if statement.