Skip to content

Commit

Permalink
Merge pull request #6 from Infomaniak/prevent-empty-display-text
Browse files Browse the repository at this point in the history
Prevent entering a blank display text for the URL display text
  • Loading branch information
LunarX authored Jun 19, 2024
2 parents 64e1385 + 03304c2 commit 8f2a9ed
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 8f2a9ed

Please sign in to comment.