editor
editor copied to clipboard
Uncaught TypeError: undefined is not a function
using cdn with a textarea I get this error
Uncaught TypeError: undefined is not a function
on
t.autofocus = n == e || e.getAttribute("autofocus") != null && n == document.body
in chrome
autofocus is undefined i think
bypassing that , I get
Uncaught TypeError: Cannot set property 'display' of undefined
e.style.display = "none";
fiddle http://jsfiddle.net/tablatronix/8qvyavtv/
ohh the example is wrong on the readme. You have to pass an actual dom element, not a string.
// doesnt work
new Editor({
element: '#editor',
tools: false
})
// correct
var editor = new Editor({
element : $('#editor').get(0) // jquery
element : document.getElementById('editor') // native js
});
sigh..