Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown Interface Updates #9267

Merged
merged 12 commits into from Dec 3, 2021
123 changes: 123 additions & 0 deletions app/src/interfaces/input-rich-text-md/index.ts
Expand Up @@ -24,6 +24,117 @@ export default defineInterface({
},
},
},
{
field: 'editorFont',
name: '$t:interfaces.input-rich-text-md.editorFont',
type: 'string',
meta: {
width: 'half',
interface: 'select-dropdown',
options: {
choices: [
{ text: '$t:sans_serif', value: 'sans-serif' },
{ text: '$t:monospace', value: 'monospace' },
{ text: '$t:serif', value: 'serif' },
],
},
},
schema: {
default_value: 'sans-serif',
},
},
{
field: 'previewFont',
name: '$t:interfaces.input-rich-text-md.previewFont',
type: 'string',
meta: {
width: 'half',
interface: 'select-dropdown',
options: {
choices: [
{ text: '$t:sans_serif', value: 'sans-serif' },
{ text: '$t:monospace', value: 'monospace' },
{ text: '$t:serif', value: 'serif' },
],
},
},
schema: {
default_value: 'sans-serif',
},
},
{
field: 'toolbar',
name: '$t:interfaces.input-rich-text-html.toolbar',
type: 'json',
schema: {
default_value: [
'heading',
'bold',
'italic',
'strikethrough',
'bullist',
'numlist',
'blockquote',
'code',
'link',
'table',
'image',
'empty',
],
},
meta: {
width: 'half',
interface: 'select-multiple-dropdown',
options: {
choices: [
{
value: 'heading',
text: '$t:wysiwyg_options.heading',
rijkvanzanten marked this conversation as resolved.
Show resolved Hide resolved
},
{
value: 'bold',
text: '$t:wysiwyg_options.bold',
},
{
value: 'italic',
text: '$t:wysiwyg_options.italic',
},
{
value: 'strikethrough',
text: '$t:wysiwyg_options.strikethrough',
},
{
value: 'blockquote',
text: '$t:wysiwyg_options.blockquote',
},
{
value: 'bullist',
text: '$t:wysiwyg_options.bullist',
},
{
value: 'numlist',
text: '$t:wysiwyg_options.numlist',
},
{
value: 'table',
text: '$t:wysiwyg_options.table',
},
{
value: 'code',
text: '$t:wysiwyg_options.source_code',
},
{
value: 'image',
text: '$t:wysiwyg_options.image',
},
{
value: 'link',
text: '$t:wysiwyg_options.link',
},
],
},
},
},
{
field: 'customSyntax',
name: '$t:interfaces.input-rich-text-md.customSyntax',
Expand All @@ -43,6 +154,10 @@ export default defineInterface({
meta: {
interface: 'input',
width: 'half',
options: {
placeholder: '$t:name',
default: null,
},
},
},
{
Expand All @@ -61,6 +176,10 @@ export default defineInterface({
meta: {
interface: 'input',
width: 'half',
options: {
placeholder: '$t:prefix',
default: null,
},
},
},
{
Expand All @@ -70,6 +189,10 @@ export default defineInterface({
meta: {
interface: 'input',
width: 'half',
options: {
placeholder: '$t:suffix',
default: null,
},
},
},
{
Expand Down