We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
操作过程: 通过 复制、粘贴上传图片,意图使图片插入下图指示的光标处。
目前,会追加到编辑框尾部
The text was updated successfully, but these errors were encountered:
no solution yet. but here are some information.
Firstly, on calling $("#body_field").inlineattach({ uploadUrl: Hifone.Config.uploader_url, extraParams: { _token: Hifone.Config.token }, onReceivedFile: function(file) {console.log($("#body_field").caret())}, onUploadedFile: function(e) {} }) for debugging:
$("#body_field").inlineattach({ uploadUrl: Hifone.Config.uploader_url, extraParams: { _token: Hifone.Config.token }, onReceivedFile: function(file) {console.log($("#body_field").caret())}, onUploadedFile: function(e) {} })
$("#body_field").caret() is already pulling to the end on or before the callback onReceivedFile
onReceivedFile
Secondly, by putting files outside the default list ["image/jpeg", "image/png", "image/jpg", "image/gif"]
["image/jpeg", "image/png", "image/jpg", "image/gif"]
the file is blocked successfully but the caret keeps in the original position.
This could deduce there are some conflicts from jquery-inlineattachment and the existing bindings.
Sorry, something went wrong.
No branches or pull requests
操作过程:
通过 复制、粘贴上传图片,意图使图片插入下图指示的光标处。
目前,会追加到编辑框尾部
The text was updated successfully, but these errors were encountered: