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

Hyphenation support #568

Open libregeek opened 7 years ago

libregeek commented 7 years ago

Does SimpleMDE supports hyphenation? In my application words are broken which makes it difficult to read. See the screenshot. selection_544

BrunoMoreira99 commented 7 years ago

Weird, what configuration are you using? Here the whole word drops to the next line thus not breaking it.

libregeek commented 7 years ago

Here is my config:

var descMde = new SimpleMDE({
                    element: document.getElementById("description"),
                    autoDownloadFontAwesome: false,
                    spellChecker: false,
                    toolbar: ["bold", "italic", "heading", "|", "unordered-list", "ordered-list", "|", "link", "image", "|", "quote", "code", "table", "|", "preview", "guide"],
                });
BrunoMoreira99 commented 7 years ago

I feel like this is being caused by some CSS affecting the word-break property. Try removing all stylesheets you might have with the exception of the one already provided by SimpleMDE and check if it solves the issue.

libregeek commented 7 years ago

It's actually part of another application (mantisbt.org), so removing all css may not be easy. One option is to override the word-break property