Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Jul 17, 2024
1 parent 7878402 commit b260d17
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ internal class HtmlSetter(private val webView: WebView) : JsLifecycleAwareExecut
override fun executeImmediately(value: String) = webView.insertUserHtml(value)

private fun WebView.insertUserHtml(html: String) {
// TODO: Escape
evaluateJavascript("""document.getElementById("$EDITOR_ID").innerHTML = `${html}`""", null)
}

Expand Down

0 comments on commit b260d17

Please sign in to comment.