question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wysiwyg TinyMCE editorConfig not working

See original GitHub issue

I am trying to add the config for the TinyMCE field, but there is no change at all. I am using a config from a sample of TinyMCE website. Am I doing something wrong? I tried many ways to make it work but none worked.

const { Wysiwyg } = require('@keystonejs/fields-wysiwyg-tinymce');
fields: {
        title: { type: Text, schemaDoc: 'Title for published article' },
        text: {
            type: Wysiwyg, editorConfig: {
                plugins: [
                    'advlist autolink lists link image charmap print preview anchor',
                    'searchreplace visualblocks code fullscreen',
                    'insertdatetime media table paste code help wordcount'
                  ],
                  toolbar: 'undo redo | formatselect | ' +
                  ' bold italic backcolor | alignleft aligncenter ' +
                  ' alignright alignjustify | bullist numlist outdent indent |' +
                  ' removeformat | help',
                content_css: [
                    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
                    '//www.tiny.cloud/css/codepen.min.css'
                ]
            }
        },
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Vultrazcommented, Mar 9, 2020

You just need to bump the'@keystonejs/fields-wysiwyg-tinymce' dependency in your project to the latest version and run yarn or npm up depending on what package manager you use.

The update doesn’t include an apiKey option, though. I’ll have to handle that separately.

1reaction
Vultrazcommented, Mar 8, 2020

The editorConfig option should now be available if you update your package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TinyMCE not working: possible causes and fixes
There are a couple of possible reasons of TinyMCE not working - you can fix those easily and we prepared detailed instructions for...
Read more >
How do I customise the WYSIWYG (TinyMCE) field for Admin ...
I tried using config in place of editorConfig but that doesn't work either. tinymce · keystonejs · Share.
Read more >
TinyMCE: Special characters defined in 'entities' not converted ...
I found this closed issue that seemed to address the problem I'm ... to my wysiwyg/editors/tinymce.inc file, the characters still did not ...
Read more >
TinyMCE | Strapi Market
Replaces the default Strapi WYSIWYG editor with a customized build of TinyMCE editor. ... If you do not yet have this file, then...
Read more >
Videos or images not showing with TinyMce - WordPress.org
Videos or images not showing with TinyMce ... 'teeny' => false, // output the minimal editor config used in Press This 'tinymce' =>...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found