Step to reproduce::
Open Froala link
Clear editors.
Click on the file icon and select file.
Issue:: Cursor is always placed before the paper clip icon.
Acceptance Criteria:: Cursor is placed after a paper clip icon when a file is attached to editors.
Video::
This problem has occurred in some browsers. I have applied one trick to solve the problem.
Triggered before uploading a file to the server.
$('.selector').on('froalaEditor.file.beforeUpload', function (e, editor, files) {
// Code....
});
Triggered after the request to upload a file has been completed successfully.
$('.selector').on('froalaEditor.file.inserted', function (e, editor, $file, response) {
editor.html.insert(" "); //add extra space after successfully file uploaded.
});