-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add migration to update "Acknowledgments" field in "Menu" model to use markdown editor * Enhance AcknowledgmentsDialog styling and image handling - Added 'markdown-body' class to the vue-markdown component for improved styling. - Introduced CSS rules to ensure images within the markdown are responsive, with a maximum width of 500px.
- Loading branch information
1 parent
3e1f869
commit 67c7037
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Client } from "@datocms/cli/lib/cma-client-node"; | ||
|
||
export default async function (client: Client) { | ||
console.log("Update existing fields/fieldsets"); | ||
|
||
const currentField = await client.fields.find("H7cTIWERTG-z24IE8ILCUw"); | ||
|
||
console.log( | ||
'Update Multiple-paragraph text field "Acknowledgments" (`acknowledgments`) in model "Menu" (`menu`)' | ||
); | ||
await client.fields.update("H7cTIWERTG-z24IE8ILCUw", { | ||
appearance: { | ||
addons: currentField.appearance.addons, | ||
editor: "markdown", | ||
parameters: { | ||
toolbar: [ | ||
"heading", | ||
"bold", | ||
"italic", | ||
"strikethrough", | ||
"code", | ||
"unordered_list", | ||
"ordered_list", | ||
"quote", | ||
"link", | ||
"image", | ||
"fullscreen", | ||
], | ||
}, | ||
type: "markdown", | ||
}, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67c7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://nl2120.netlify.app as production
🚀 Deployed on https://67581aa15f02ed02230a7020--nl2120.netlify.app
67c7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://data.openearth.nl as production
🚀 Deployed on https://67581aa160435f056af04534--deltares-viewer.netlify.app
67c7037
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://viewer.openearth.nl as production
🚀 Deployed on https://67581aa49cd36604f52540f6--rws-viewer.netlify.app