Closed elhakeem closed 4 years ago
Those are lists config for the the lists have the issue:
{
fields: {
title: {type: Text},
summary: {type: Text, isMultiline: true},
content: {
type: Wysiwyg,
editorConfig: {
// directionality: 'rtl',
plugins: [
'codesample advlist autolink link image lists',
'charmap print preview hr anchor pagebreak spellchecker',
'searchreplace wordcount visualblocks visualchars',
'code fullscreen insertdatetime media nonbreaking',
'table emoticons template paste help directionality'
],
codesample_languages: [
{text: 'HTML/XML', value: 'markup'},
{text: 'JavaScript', value: 'javascript'},
{text: 'CSS', value: 'css'},
{text: 'PHP', value: 'php'},
{text: 'Ruby', value: 'ruby'},
{text: 'Python', value: 'python'},
{text: 'Java', value: 'java'},
{text: 'C', value: 'c'},
{text: 'C#', value: 'csharp'},
{text: 'C++', value: 'cpp'}
],
menu: {
file: { title: 'File', items: 'newdocument restoredraft | preview | print ' },
edit: { title: 'Edit', items: 'undo redo | cut copy paste | selectall | searchreplace' },
view: { title: 'View', items: 'code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | ltr rtl' },
insert: { title: 'Insert', items: 'image link media template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime' },
format: { title: 'Format', items: 'bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align | forecolor backcolor | removeformat' },
tools: { title: 'Tools', items: 'spellchecker spellcheckerlanguage | code wordcount' },
table: { title: 'Table', items: 'inserttable | cell row column | tableprops deletetable' },
help: { title: 'Help', items: 'help' }
},
toolbar: 'styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent | link image | codesample code | ltr rtl | fullscreen',
menubar: true
}
},
image: {
type: File,
adapter: s3FileAdapter,
hooks: {
beforeChange: beforeChangeHook(s3FileAdapter),
},
},
categories: {type: Relationship, ref: 'Category', many: true},
status: {type: Select, options: 'draft,published', defaultValue: 'draft'},
author: {type: Relationship, ref: 'User'},
},
labelField: 'title',
adminConfig: {
defaultColumns: 'summary,author,categories'
},
hooks: {
afterDelete: afterDeleteHook(s3FileAdapter),
}
}
{
fields: {
title: {type: Text},
content: {
type: Wysiwyg,
editorConfig: {
toolbar: 'styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent | link | ltr rtl | fullscreen',
}
},
code: {
type: Wysiwyg,
editorConfig: {
// directionality: 'rtl',
plugins: ['codesample code fullscreen'],
codesample_languages: [
{text: 'HTML/XML', value: 'markup'},
{text: 'JavaScript', value: 'javascript'},
{text: 'CSS', value: 'css'},
{text: 'PHP', value: 'php'},
{text: 'Ruby', value: 'ruby'},
{text: 'Python', value: 'python'},
{text: 'Java', value: 'java'},
{text: 'C', value: 'c'},
{text: 'C#', value: 'csharp'},
{text: 'C++', value: 'cpp'}
],
toolbar: 'codesample code | ltr rtl | fullscreen',
}
},
status: {type: Select, options: 'draft,published', defaultValue: 'draft'},
},
labelField: 'title',
adminConfig: {
defaultColumns: 'content'
},
hooks: {
afterDelete: afterDeleteHook(s3FileAdapter),
}
}
@timleslie
+1 Having the same issue with Wysiwig fields, even without any editorConfig Also happening for:
Hope you got the answer for this. I just met the same issue today.
I'm using default editor and not sure if any conflict after install @keystonejs/fields-content
.
I changed from @keystonejs/fields-wysiwyg-tinymce@5.3.0
to @keystonejs/fields-wysiwyg-tinymce@5.2.5
and it worked.
Thank you @HailZetta the version I had was @keystonejs/fields-wysiwyg-tinymce@5.2.3
I upgraded to 5.2.5
and fortunately it worked.
In Admin Ui single item screen. This error appeared to me.
dependencies:
this happens to all lists that have a field of type
Wysiwyg
.App crashed and white screen appeared. terminal error from nextjs once visiting this screen
event - build page: /next/dist/pages/_error
and this is a warning appeared while starting the serverExperimentalWarning: The fs.promises API is experimental