Shareef Ali

Results 18 comments of Shareef Ali

oauth token retrieval function is broken in Android 10.0 SDK. My work requires to be on latest Android SDK. I had to make a barebone android 9.0 app which contains...

google-auth-library-credentials-0.17.1 google-auth-library-oauth2-http-0.17.1 google-http-client-1.31.0 google-http-client-jackson2-1.31.0 jackson-core-2.9.9 httpclient-4.5.9 httpcore-4.4.11 okhttp-2.7.5 okio-1.6.0 grpc-stub-1.4.0 grpc-protobuf-lite-1.4.0 grpc-okhttp-1.4.0 grpc-core-1.4.0 grpc-context-1.4.0 instrumentation-api-0.4.3 opencensus-contrib-http-util-0.18.0 opencensus-api-0.18.0

you can actually derive the location from retain and insert's length

Try something like this ``` (delta: Delta, _oldContents: Delta, source: string) => { //get the location of the current position based on delta console.log(delta.ops[0].retain ??0+(delta.ops[0].insert?.length??0)) } ```

No it is not a hack, Again this is an example on how to implement delta based cursor location extraction, you need to handle op array too. Once you implement...

Can't you use something like this? https://github.com/nozer/quill-delta-to-html