diff options
| author | Robert Jaros <rjaros@finn.pl> | 2018-08-21 16:07:28 +0200 |
|---|---|---|
| committer | Robert Jaros <rjaros@finn.pl> | 2018-08-21 16:07:28 +0200 |
| commit | 63691ce4536cbff24330e6d268343e343ee806fa (patch) | |
| tree | cfa9b6e8c3a594a7756034bfd403ceb9311c72d7 /src/main/kotlin/pl/treksoft/kvision/form/text | |
| parent | 561a9d5fdc0f8be67703e8d594148cda5d74f754 (diff) | |
| download | kvision-63691ce4536cbff24330e6d268343e343ee806fa.tar.gz kvision-63691ce4536cbff24330e6d268343e343ee806fa.tar.bz2 kvision-63691ce4536cbff24330e6d268343e343ee806fa.zip | |
Internationalization support for built-in components.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/form/text')
| -rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt index 88cb3b86..c5d9a556 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt @@ -84,8 +84,9 @@ open class RichTextInput(value: String? = null, classes: Set<String> = setOf()) trixId = this.getElementJQuery()?.attr("trix-id") if (trixId != null) { value?.let { - if (this.getElement().asDynamic().editor != undefined) + if (this.getElement().asDynamic().editor != undefined) { this.getElement().asDynamic().editor.loadHTML(it) + } } } }) |
