generated from eea/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow editing section title and HTML tag in edit mode
- Loading branch information
Showing
7 changed files
with
90 additions
and
25 deletions.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export GroupBlockEdit from './manage/Blocks/Group/Edit'; | ||
export GroupBlockView from './manage/Blocks/Group/View'; | ||
export GroupBlockSchema from './manage/Blocks/Group/Schema'; | ||
export GroupBlockLayout from './manage/Blocks/Group/LayoutSchema'; |
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
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,34 @@ | ||
const Schema = { | ||
title: 'Section block', | ||
fieldsets: [ | ||
{ | ||
id: 'default', | ||
title: 'Default', | ||
fields: ['title', 'as'], | ||
}, | ||
], | ||
properties: { | ||
title: { | ||
title: 'Title', | ||
description: 'Section friendly name', | ||
type: 'string', | ||
}, | ||
as: { | ||
title: 'HTML5 element', | ||
description: 'Select HTML5 element to be used for this block', | ||
type: 'string', | ||
factory: 'Choice', | ||
default: 'div', | ||
choices: [ | ||
['div', 'div'], | ||
['section', 'section'], | ||
['article', 'article'], | ||
['aside', 'aside'], | ||
['details', 'details'], | ||
], | ||
}, | ||
}, | ||
required: [], | ||
}; | ||
|
||
export default Schema; |
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
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
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
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