ArticleDirectory
-
- Reproduction steps:
- Result:
- Cause:
- Solution
Encountered during editor Development
Reproduction steps:
1. Point the cursor to the end of the text "some text" (to insert content after "some text)
2. move the cursor to the text box of "input field ".
3. Click "insert HTML ".
Result:
1. insert content at the beginning of the editor each time in the IE6-10
2. Content is inserted after the editor every time in Firefox/Chrome/safari.
Cause:
It should be an IE bug, that is, the cursor leaves the editor and moves inThis window. IE cannot remember the last cursor position in the editor. At this time, the content is inserted at the beginning each time. Other browsers can remember the last cursor position to meet user needs.
Solution
All editors, such as ueditor, kindeditor, and Sina mail, and a blog editor is displayed.Window Level(Including IFRAME), cnblogs blog editor. The input fields on this page will not be affected.
Source code
IE-Editor.zip