simplemde-markdown-editor icon indicating copy to clipboard operation
simplemde-markdown-editor copied to clipboard

Add a class to preview containers

Open TangentFoxy opened this issue 7 years ago • 2 comments

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?)

TangentFoxy avatar Jan 05 '18 06:01 TangentFoxy

duplicate #379

sn3p avatar Jul 11 '19 16:07 sn3p

see here.

margani avatar Jul 01 '20 07:07 margani