CKEditorautogrowプラグインに問題があります。
Returnキーを押すと(最小の高さを超えて自動成長した後)、テキストコンテンツが揺れ(1行上にジャンプして下に戻ります)、垂直スクロールバーが点滅します。自動成長は機能しますが、ユーザーエクスペリエンスはぎくしゃくしています。
scrolling="no"とoverflow="hidden"を指定すると、垂直スクロールバーを非表示にできますが、テキストの内容が揺れます。
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初期化コード:
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
})
エンターキーを押したときにテキストコンテンツがジャンプ/シフトするのを回避する方法はありますか(最小の高さを超えて自動成長した後)?