Update plugin.js

Like classic library, we look if the bottom of the window is not too close. If it is, we set the position above.

It's a problem if the CKEditor is really near the window border. Could be improved with sides detection and offset.