Simplemde-markdown-editor: Cannot read property 'getAttribute' of undefined

Created on 7 Dec 2016  路  1Comment  路  Source: sparksuite/simplemde-markdown-editor

I get this error in chrome console.

Uncaught TypeError: Cannot read property 'getAttribute' of undefined
    at B.render (https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js:15:4470)
    at new B (https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js:14:28861)

It relates to this line
placeholder: options.placeholder || el.getAttribute("placeholder") || "",

I have tested it with a bare-bones html file - and i still get the issue eg - using this code

<head>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
    <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
</head>

<body>
<script>
    var simplemde = new SimpleMDE();
</script>
</body>

Most helpful comment

No textarea element on the page.

Configuration:
element: The DOM element for the textarea to use. Defaults to the first textarea on the page.

>All comments

No textarea element on the page.

Configuration:
element: The DOM element for the textarea to use. Defaults to the first textarea on the page.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asvae picture asvae  路  3Comments

IonicaBizau picture IonicaBizau  路  3Comments

nivv picture nivv  路  4Comments

jasonlewis picture jasonlewis  路  4Comments

prologic picture prologic  路  4Comments