haibin_info
haibin_info
  • 发布:2016-03-18 10:42
  • 更新:2016-03-18 10:42
  • 阅读:2958

手机富文本编辑器删除图片无法删除bug

分类:HTML5+

手机创建富文本编辑器是正常的,但是点击删除按钮时,会跳过图片,无法删除图片内容
<iframe id="edit_note_content" width="100%" height="500" style="border: solid 1px #E9E9E9;"></iframe>
//------编辑页面-编辑框对象
$edit_note_d = $("#edit_note_content")[0].contentWindow.document; // IE、FF都兼容
$edit_note_d.designMode = "on";
$edit_note_d.contentEditable = true;
$edit_note_d.open();
$edit_note_d.close();

内容:
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAfABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD0XXp/HWiaVNf3ep2DwxFQwjjBbkgDqg7mudsPiD4k85j9tTO3/ngnr9K9Rhm0nxPov2V54LuKVF82NJfmB4PODkEEVi2nwv0d9Q3R3N4kRUkxhlPcdCRXk18PXlZ0Ju3qfSYXG4SMXDF0kpL+6tjX+F+u6nrsGoSapOsoiZFjwirjg56D6UVuaXp2jeE7F0hkjtIXbc7zzfeOMZyT/Kiu2helTUKsve9TyMSlXqyqUINR6WX+R8wozIwZGKsOQQcEV0Ol+K9dgieFdWuhHtxkyZI+jHkfga911HwP4a1CTfc6Rb7+pMW6LP12EZqn/wAK28J/9Ar/AMmZv/i683+za8fgkl959FLPsHVS9pTb+Sf6nhN1qBnlMlxPJPIerMxYn8TRXvlp8P8AwtayiSLSImYdpXeQfkzEUVCyib+KSB8Q4daRg7fJH//Z">asdasd

删除到图片部分,就会无法触发,是编辑器底层的问题,你们这边没有提供再下面的处理了。

http://stackoverflow.com/questions/18093067/cant-delete-image-in-contenteditable-div-on-android/24591285

2016-03-18 10:42 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复