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.8k stars 1.12k forks source link

Preview Toggle issue #724

Closed MR-H0200 closed 5 years ago

MR-H0200 commented 5 years ago

Cannot toggle from preview mode to normal mode.

new SimpleMDE({
            toolbar: [{
                    name: "preview",
                    action: SimpleMDE.togglePreview,
                    className: "fa fa-eye no-disable",
                    title: "Toggle Preview",
                    default: true
                }],
                   element:$('textarea')
})

Click preview icon few times.

MR-H0200 commented 5 years ago

It is semantic-ui bug

which adds visible class while showing tooltip // on element hover

sometimes visible is added as no-disablevisible instead of no-disable visible

hence closing this issue