Changed L&F For the editor to use AVUSD logo and colors; Added a 1:2 and 2:1 split column widget (would like to make this all one configurable widget though).
This commit is contained in:
16
lib/modules/two-column-1-2-widgets/index.js
Normal file
16
lib/modules/two-column-1-2-widgets/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
extend: 'apostrophe-widgets',
|
||||
label: 'Two Column (1:2)',
|
||||
addFields: [
|
||||
{
|
||||
name: 'areaLeft',
|
||||
type: 'area',
|
||||
label: "Left Area",
|
||||
},
|
||||
{
|
||||
name: "areaRight",
|
||||
type: "area",
|
||||
label: "Right Area"
|
||||
}
|
||||
]
|
||||
};
|
||||
40
lib/modules/two-column-1-2-widgets/views/widget.html
Normal file
40
lib/modules/two-column-1-2-widgets/views/widget.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
{{ apos.area(data.widget, "areaLeft", {
|
||||
widgets: {
|
||||
'apostrophe-images': {size: 'one-half'},
|
||||
'apostrophe-rich-text': {
|
||||
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
|
||||
styles: [
|
||||
{name: 'Paragraph', element: 'p'},
|
||||
{name: 'Heading 2', element: 'h2'},
|
||||
{name: 'Heading 3', element: 'h3'},
|
||||
{name: 'Heading 4', element: 'h4'},
|
||||
{name: 'Heading 5', element: 'h5'}
|
||||
]
|
||||
},
|
||||
'apostrophe-files': {}
|
||||
}
|
||||
}) }}
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
{{ apos.area(data.widget, "areaRight", {
|
||||
widgets: {
|
||||
'apostrophe-images': {size: 'full'},
|
||||
'apostrophe-rich-text': {
|
||||
toolbar: ['Styles', 'Bold', 'Italic', 'Link', 'Unlink', 'Anchor', 'Table', 'BulletedList', 'Blockquote', 'Strike', 'Subscript', 'Superscript', 'Split'],
|
||||
styles: [
|
||||
{name: 'Paragraph', element: 'p'},
|
||||
{name: 'Heading 2', element: 'h2'},
|
||||
{name: 'Heading 3', element: 'h3'},
|
||||
{name: 'Heading 4', element: 'h4'},
|
||||
{name: 'Heading 5', element: 'h5'}
|
||||
]
|
||||
},
|
||||
'apostrophe-files': {}
|
||||
}
|
||||
}) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user