RichEditorView icon indicating copy to clipboard operation
RichEditorView copied to clipboard

setEditorBackgroundColor not working

Open Mehul18292 opened this issue 8 years ago • 6 comments

there is method with name "setEditorBackgroundColor" to change background color of editor. But when i call this method, it is not working as required.

Mehul18292 avatar Aug 16 '17 09:08 Mehul18292

same here

alexhuangVT avatar Sep 12 '17 10:09 alexhuangVT

Make sure you call it from the richEditorDidLoad RichEditorDelegate method

steviemo avatar Nov 18 '17 11:11 steviemo

@steviemo I tried this and it worked but you still have a white background whose colour you can't change when your view is higher than the innerLineHeight or the lineHeight attribute.

I thought that this was the background colour of the .webView but when I changed it, I got the same result.

I suppose that the white colour is the background if the rendered HTML...?

Heckscheibe avatar Jan 15 '19 10:01 Heckscheibe

@Heckscheibe In Debug View Hierarchy you can see that view with white background is some webview's subview called UIWebBrowserViewMinusAccessoryView. There is some hack code in CJWWebView+HackishAccessoryHiding.h/m, but looks like in doesn't work

EVanzhula avatar Feb 22 '19 11:02 EVanzhula

Should be fixed with these changes: https://github.com/cjwirth/RichEditorView/pull/208

hansemannn avatar Aug 17 '19 18:08 hansemannn

not working to me

fukemy avatar May 12 '21 12:05 fukemy