fix shortcodes for scmsv4
All checks were successful
website-main / prod-build (push) Successful in 7s
website-main / test-build (push) Successful in 4s

This commit is contained in:
2024-01-02 21:58:00 +01:00
parent 02c5040281
commit cbbf5abf04
12 changed files with 141 additions and 150 deletions

View File

@ -1,4 +1,4 @@
import { Card, TextField } from "./components/index.js";
import { Card, TextField, Label } from "./components.js";
const CardShortcode = {
label: "Link-Karte",
@ -27,15 +27,15 @@ const CardShortcode = {
},
control: ({ title, link, onChange }) => {
return Card([
Label("Titel"),
TextField({
label: "Titel",
value: title,
onChange: (event) => {
onChange({ title: event.target.value.trimStart(), link });
},
}),
Label("Link"),
TextField({
label: "Link",
value: link,
onChange: (event) => {
onChange({ title, link: event.target.value });