Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated codemirror to version 5.52.2 #173

Merged
merged 3 commits into from
Mar 21, 2020
Merged

Conversation

A-312
Copy link

@A-312 A-312 commented Mar 21, 2020

fix: #160

why? -> codemirror/codemirror5#6167 (comment)

Q/A :

example/zds.html:

<!DOCTYPE html>
<html lang="fr">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Example / Preview</title>
    <link rel="stylesheet" href="../dist/easymde.min.css">
    <script src="../dist/easymde.min.js"></script>
</head>

<body>
    <textarea id="myText"></textarea>
    <script>
        var easyMDE = new EasyMDE({
            element: document.getElementById('myText'),
            spellChecker: false,
            inputStyle: 'contenteditable',
            autosave: {
                enabled: true,
                uniqueId: 12,
                submit_delay: 10000,
                delay: 1000
            },
            indentWithTabs: false,
            minHeight: 200,
            placeholder: 'Votre message au format Markdown',
            promptURLs: true,
            promptTexts: {
            image: 'Url de votre image',
            link: 'Url de votre lien'
            },
            uploadImage: true,
            imageUploadFunction: () => {},
            imageTexts: {
            sbInit: 'Joindre des images par glisser-déposer ou coller depuis le presse-papiers.',
            sbOnDragEnter: 'Déposer l"image pour l"envoyer dans votre galérie',
            sbOnDrop: 'Téléchargement d"images #images_names#',
            sbProgress: 'Téléchargement #file_name#: #progress#%',
            sbOnUploaded: 'Image téléchargée #image_name#'
            },
            nativeSpellcheck: true,
            promptAbbrv: true,
            theme: 'idea',
            previewRender: () => {},
            syncSideBySidePreviewScroll: false
        });
    </script>
</body>

</html> 

CHANGELOG.md Outdated Show resolved Hide resolved
A-312 and others added 2 commits March 21, 2020 12:08
Co-Authored-By: Situphen <Situphen@users.noreply.github.com>
@Situphen
Copy link

@A-312 You also need to add [#173]: https://github.com/Ionaru/easy-markdown-editor/pull/173 after <!-- Linked PRs -->

@Ionaru Ionaru merged commit 39f9cd7 into Ionaru:master Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Easy-mde doesn't work well with inputStyle: 'contenteditable'
3 participants