mirror of https://github.com/Budibase/budibase.git
3 changed files with 51 additions and 51 deletions
@ -1,34 +1,44 @@ |
|||
<script> |
|||
import { RichText } from '@budibase/bbui' |
|||
import { RichText } from '@budibase/bbui' |
|||
|
|||
export let _bb |
|||
|
|||
export let label = "" |
|||
export let value = "" |
|||
let options = { |
|||
"modules": { |
|||
"toolbar": [ |
|||
[ |
|||
{ |
|||
"header": [ |
|||
1, |
|||
2, |
|||
3, |
|||
false |
|||
] |
|||
} |
|||
], |
|||
[ |
|||
"bold", |
|||
"italic", |
|||
"underline", |
|||
"strike" |
|||
export let _bb |
|||
|
|||
export let content = "" |
|||
|
|||
const updateValue = content => { |
|||
if (_bb) { |
|||
_bb.setBinding("value", content) |
|||
} |
|||
} |
|||
|
|||
$: updateValue(content) |
|||
|
|||
// Need to determine what options we want to expose. |
|||
|
|||
let options = { |
|||
"modules": { |
|||
"toolbar": [ |
|||
[ |
|||
{ |
|||
"header": [ |
|||
1, |
|||
2, |
|||
3, |
|||
false |
|||
] |
|||
} |
|||
], |
|||
[ |
|||
"bold", |
|||
"italic", |
|||
"underline", |
|||
"strike" |
|||
] |
|||
] |
|||
] |
|||
}, |
|||
"placeholder": "Type something...", |
|||
"theme": "snow" |
|||
} |
|||
</script> |
|||
}, |
|||
"placeholder": "Type something...", |
|||
"theme": "snow" |
|||
} |
|||
</script> |
|||
|
|||
<RichText {options} /> |
|||
<RichText bind:content {options} /> |
|||
Loading…
Reference in new issue