Bugfix/image widget starting value (#57)
* Fix image asset loading * Fix scroll sync for frame
This commit is contained in:
committed by
GitHub
parent
e62563e4a3
commit
6135a6c8d8
Before Width: | Height: | Size: 808 KiB After Width: | Height: | Size: 808 KiB |
Before Width: | Height: | Size: 310 KiB After Width: | Height: | Size: 310 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
@ -1,10 +1,12 @@
|
||||
backend:
|
||||
name: gitlab
|
||||
branch: master
|
||||
repo: owner/repo
|
||||
branch: main
|
||||
repo: static-cms/static-cms-gitlab
|
||||
auth_type: pkce
|
||||
app_id: 91cc479ec663625098d456850c4dc4943fd8462064ebd9693b330e66f9d8f11a
|
||||
|
||||
media_folder: static/media
|
||||
public_folder: /media
|
||||
media_folder: assets/upload
|
||||
public_folder: /assets/upload
|
||||
collections:
|
||||
- name: posts
|
||||
label: Posts
|
||||
@ -92,7 +94,8 @@ collections:
|
||||
label: Settings
|
||||
delete: false
|
||||
editor:
|
||||
preview: false
|
||||
preview: true
|
||||
frame: false
|
||||
files:
|
||||
- name: general
|
||||
label: Site Settings
|
||||
|
File diff suppressed because one or more lines are too long
@ -19,6 +19,7 @@ const PostPreview = createClass({
|
||||
},
|
||||
});
|
||||
|
||||
// TODO Hook this back up, getAsset returns a promise now
|
||||
const GeneralPreview = createClass({
|
||||
render: function () {
|
||||
const entry = this.props.entry;
|
||||
@ -45,6 +46,7 @@ const GeneralPreview = createClass({
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
const AuthorsPreview = createClass({
|
||||
render: function () {
|
||||
return h(
|
||||
@ -90,7 +92,7 @@ const RelationKitchenSinkPostPreview = createClass({
|
||||
|
||||
CMS.registerPreviewStyle('.toastui-editor-contents h1 { color: blue }', { raw: true });
|
||||
CMS.registerPreviewTemplate('posts', PostPreview);
|
||||
CMS.registerPreviewTemplate('general', GeneralPreview);
|
||||
// CMS.registerPreviewTemplate('general', GeneralPreview);
|
||||
CMS.registerPreviewTemplate('authors', AuthorsPreview);
|
||||
// Pass the name of a registered control to reuse with a new widget preview.
|
||||
CMS.registerWidget('relationKitchenSinkPost', 'relation', RelationKitchenSinkPostPreview);
|
||||
|
Reference in New Issue
Block a user