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