sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.92k stars 1.12k forks source link

Add a class to preview containers #674

Open TangentFoxy opened 6 years ago

TangentFoxy commented 6 years ago

I'm using a CSS framework for a consistent look to my site, and SimpleMDE as a way to edit content for the site. In order to have the styling of the site apply within SimpleMDE's preview, I would like to be able to add a class to the divs containing the preview.

I've already figured out that they are classed editor-preview and editor-preview-side depending on which preview is being shown, but it seems these don't exist until a user clicks the button for them, so I haven't figured out a way to find and attach a class to them in JS.

(It looks like I can use customizing the toolbar to accomplish this, but is there a way to modify the default toolbar instead of replacing it?)

sn3p commented 5 years ago

duplicate #379

margani commented 4 years ago

see here.