You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On mobile, tapping on the bottom area (the 300px bottom padding) does not open the device keyboard. On Android, it seems to set the focus, but doesn't open the keyboard. On iOS, I'm not sure, but it might not even set the focus.
Tap in the big white bottom area under the first block (don't tap the block itself)
The focus is set on Android, but the keyboard is not opened. On iOS, I'm not even sure the focus is set (TBC).
As a workaround, I tried something like the following (simplified - React), which gives acceptable results on Android, but not on iOS (need to tap twice to get the focus+keyboard):
onReady: ()=>{constredactor=holderRef.current?.querySelector<HTMLElement>('.codex-editor__redactor');consthandleClick=(e: MouseEvent)=>{if(e.target===redactor){letlastBlock=editor.blocks.getBlockByIndex(editor.blocks.getBlocksCount()-1);if(!lastBlock?.isEmpty){lastBlock=editor.blocks.insert('paragraph');}consteditable=lastBlock.holder.querySelector<HTMLElement>('[contenteditable]');editable?.focus();editable?.click();e.preventDefault();e.stopImmediatePropagation();setTimeout(()=>{// Attempt to force the focus and open keyboard on iOS -- KOeditable?.focus();editable?.click();});setTimeout(()=>{editable?.focus();editable?.click();},50);focusAtTheEnd(editor,e);}};redactor?.addEventListener('click',handleClick,{capture: true});}
Expected behavior:
Tap anywhere in the editor, it sets the focus and opens the device keyboard.
Device, Browser, OS:
Android: Chrome 114
iOS: latest iOS and Safari version when testing (16.5 I believe)
Editor.js version and plugins: Your online demo
The text was updated successfully, but these errors were encountered:
On mobile, tapping on the bottom area (the 300px bottom padding) does not open the device keyboard. On Android, it seems to set the focus, but doesn't open the keyboard. On iOS, I'm not sure, but it might not even set the focus.
Steps to reproduce:
As a workaround, I tried something like the following (simplified - React), which gives acceptable results on Android, but not on iOS (need to tap twice to get the focus+keyboard):
Expected behavior:
Tap anywhere in the editor, it sets the focus and opens the device keyboard.
Device, Browser, OS:
Editor.js version and plugins: Your online demo
The text was updated successfully, but these errors were encountered: