Netlify-cms: Custom Editor Widget: toPreview output has no effect

Created on 12 Dec 2017  路  3Comments  路  Source: netlify/netlify-cms

- Do you want to request a feature or report a bug?
bug

- What is the current behavior?
Adding a custom editor widget via registerEditorComponent appends elements to the markdown editor as well as the preview window that solely follow the principles noted in the toBlock section instead of toBlock and toPreview.

- If the current behavior is a bug, please provide the steps to reproduce.
E.g. add the Youtube editor component you can find in the example section and try to append a video to a blogpost.

- What is the expected behavior?
Since there is a toBlock and a toPreview section associated with every custom editor widget it is expected that the toBlock part actually gets added to the text editor while the toPreview element gets displayed in the preview window.

- Please mention your CMS, node.js, and operating system version.
Netlify CMS version 1.0.2

extensionwidgetmarkdown bug more info needed

Most helpful comment

Thanks for your reply @erquhart.
I restarted chrome with all plugins disabled and it seems to work as expected. Sorry to bother you with that - should have tried that in the first place. 馃檲

All 3 comments

@bkroggel I'm not able to reproduce this - the example project in the cms repo uses that same example code and the youtube preview works fine. Here's a live demo to test against: https://cms-demo.netlify.com/#/collections/posts/new

Do you have a live reproduction?

Thanks for your reply @erquhart.
I restarted chrome with all plugins disabled and it seems to work as expected. Sorry to bother you with that - should have tried that in the first place. 馃檲

No problem! Please comment back with details if you happen to know which Chrome extension(s) caused the issue, might be helpful for others.

Was this page helpful?
0 / 5 - 0 ratings