0

I am trying to add markdown editor with my application. i tried with simplemd-editor found from https://github.com/NextStepWebs/simplemde-markdown-editor ; It is working fine whereas it changes the cursor pointer of my texarea as shown in the picture below enter image description here.

And when typing, text coming with some background color as shown in below picture; enter image description here

Question: My textarea cursor should not be changed (it should appear with basic style) and background color should not appear when typing. Please help how to achieve this using jquery?

3
  • Show initialization code please
    – Leguest
    Commented Apr 29, 2017 at 17:42
  • var simplemde = new SimpleMDE({ element: document.getElementById("ta_add_notes"),styleSelectedText: false }); //ta_add_notes is my textarea .. Commented Apr 29, 2017 at 18:48
  • Hm, that thing with cursor is it happens in all web browsers? About background color, maybe you override default css? Would be great if you provide an example of your error in jsfiddle
    – Leguest
    Commented Apr 29, 2017 at 21:00

2 Answers 2

2

The background color is occurring because of the integrated spell check. You need to initialize your SimpleMDE with spell check disabled, like this:

var simplemde = new SimpleMDE({ spellChecker: false });

Reference: SimpleMDE Configuration

0

For future references, I fixed this problem by adding

<meta charset="UTF-8">

In my html file

See this github issue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.