Tôi đang gặp một vấn đề với các plugin ckeditor autogrow:ckeditor autogrow cắm dọc cuộn nhấp nháy vấn đề
Sau khi nhấn trở lại (sau khi tự động phát triển quá khứ chiều cao tối thiểu), run nội dung văn bản (nhảy lên một dòng và trở xuống), và một thanh cuộn dọc nhấp nháy và tắt. Autogrow hoạt động, nhưng trải nghiệm người dùng rất khó khăn.
Tôi có thể ẩn thanh cuộn dọc bằng cách chỉ định cuộn = "no" và overflow = "hidden", nhưng nội dung văn bản vẫn rung.
Tôi đang vô hiệu hóa di chuyển trong ckeditor.js:
<iframe scrolling="no" style="width:100%;height:100%;overflow:hidden;" frameBorder="0" title="'+E+'"'+' src="'+W+'"'+' tabIndex="'+(b.webkit?-1:C.tabIndex)+'"'+' allowTransparency="true"'+'></iframe>
ckeditor mã khởi tạo:
CKEDITOR.replace('Description',
{
sharedSpaces:
{
top: 'topSpace',
bottom: 'bottomSpace'
},
extraPlugins: 'autogrow,tableresize',
removePlugins: 'maximize,resize,elementspath',
skin: 'kama',
toolbar: [['Format', 'Font', 'FontSize'], ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'], ['TextColor', 'BGColor'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['NumberedList', 'BulletedList'], ['Outdent', 'Indent'],
'/', ['Link', 'Unlink', 'Anchor'], ['Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar'], ['PasteText', 'PasteFromWord'],['Cut','Copy','Paste'], ['Undo', 'Redo'], ['Find', 'Replace'], ['SpellChecker']],
toolbarCanCollapse: false,
pasteFromWordRemoveFontStyles: false,
enterMode: CKEDITOR.ENTER_BR,
shiftEnterMode: CKEDITOR.ENTER_P,
autoGrow_minHeight: 300
})
Có cách nào để tránh nhảy nội dung text/chuyển khi nhấn phím Enter (sau khi autogrowing qua chiều cao min)?