Add a Description field to the Guide information dialog
Reuses the guide's existing descriptionHtml/descriptionText, which already renders on the PDF cover and at the top of every other export format, so it surfaces alongside author/co-authors/organization with no exporter changes needed. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
@@ -1574,9 +1574,13 @@ class GuideEditor {
|
||||
async openGuideInfo() {
|
||||
if (!this.guide) return;
|
||||
await dialogs.showGuideInfoDialog({
|
||||
values: this.guide.metadata || {},
|
||||
onSave: async (metadata) => {
|
||||
values: {
|
||||
...this.guide.metadata,
|
||||
description: htmlToPlainText(this.guide.descriptionHtml || ''),
|
||||
},
|
||||
onSave: async ({ description, ...metadata }) => {
|
||||
this.guide.metadata = metadata;
|
||||
this.guide.descriptionHtml = textToHtml(description);
|
||||
await api.guide.save({ guide: this.guide });
|
||||
this.onToast('Guide information saved.');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user