Open Borko4vp opened 3 years ago
Is there a way to override inputAccessoryView property of SQTextEditorView? I did manage to accomplish this by subclassing WKWebView and overriding/exposing inputAccessoryView in it, and replacing webView property of the SQTextEditorView with subclass instance.
But still i don't like this approach much since i had to make changes to the pod code? Any better solution?
Thanks.
Hi @Borko4vp , I would like to implement this in my project. But I am facing same issue. I would like to show all options of editing on keyboard tool bar instead of collection view. Can you please suggest me, how can we achieve this ?
Hello @RahulFate did you solve this issue?
@subashparajuli007 not yet.
If you have solution for this then please share
Make a custom web view like this:
public class RichEditorWebView: WKWebView { public var accessoryView: UIView? public override var inputAccessoryView: UIView? { // remove/replace the default accessory view return accessoryView } }
subclass the web view in SQEditorTextView like this:
public lazy var webView: RichEditorWebView
finally add accessory view to your SQTextEditorView like this:
editorView.webView.accessoryView = bar
Is there a way to override inputAccessoryView property of SQTextEditorView? I did manage to accomplish this by subclassing WKWebView and overriding/exposing inputAccessoryView in it, and replacing webView property of the SQTextEditorView with subclass instance.
But still i don't like this approach much since i had to make changes to the pod code? Any better solution?
Thanks.