RichEditorView icon indicating copy to clipboard operation
RichEditorView copied to clipboard

Focus is only working on placeholder area, NOT on complete view

Open rhytam opened this issue 4 years ago • 6 comments

The view only becomes active when tapped on the placeholder area or where the text is written. If the user taps anywhere else, field does not become first responder

rhytam avatar May 07 '20 12:05 rhytam

I faced this issue , solve it by some changes in (style.css) file

#editor {
    min-height: 200px;
    height: auto;
    font-size: 14pt;
    padding:10px
    direction:rtl !important;
}

attention! , change direction to rtf , add padding, that serve my requirements

if not work with you tell me , I made other changes for other requirements may help for this issue

hassanmohsen avatar Jun 02 '20 11:06 hassanmohsen

#editor { min-height: 200px; height: auto; font-size: 14pt; padding:10px direction:rtl !important; }

Thanks a lot @hassanmohsen Spent hours changing the focus point, but got no result. This worked like a charm.. !!!!!!!

ghost avatar Jun 03 '20 10:06 ghost

Nice @hassanmohsen , I'll add it in unless you'd like to make a PR.

YoomamaFTW avatar Jun 11 '20 21:06 YoomamaFTW

@YoomamaFTW sorry for lating, you can add it , no problem

hassanmohsen avatar Aug 15 '20 14:08 hassanmohsen

I got @hassanmohsen 's solution to work for a fixed minimum height, but in my case I wanted the editor to cover the entire area. I was able to solve this problem by removing the div with id="container" and setting height: 100% in body (I didn't have to make any changes to the editor div). This makes the editor div fill up the body and the body fills up the entire view area.

eli-zhang avatar Jan 06 '21 13:01 eli-zhang

I'm not having this issue. Though, an issue that I've been having for a long time is that the cursor, if you click on an area below all your text, goes to the very top. Will report back with that fix. Otherwise, please let me know if this issue is still persisting, and if so, add debugging info like iOS version, reproducing steps, etc.

Andrew-Chen-Wang avatar Apr 27 '21 20:04 Andrew-Chen-Wang