Skip to content

Commit

Permalink
Prevent entering a blank display text for the URL display text
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Jun 19, 2024
1 parent 64e1385 commit 03304c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class RichHtmlEditorWebView @JvmOverloads constructor(
fun toggleStrikeThrough() = jsBridge.toggleStrikeThrough()
fun toggleUnderline() = jsBridge.toggleUnderline()
fun removeFormat() = jsBridge.removeFormat()
fun createLink(displayText: String?, url: String) = jsBridge.createLink(displayText, url)
fun createLink(displayText: String?, url: String) = jsBridge.createLink(displayText?.takeIf { it.isNotBlank() }, url)
fun unlink() = jsBridge.unlink()

/**
Expand Down

0 comments on commit 03304c2

Please sign in to comment.