mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-26 05:10:41 +03:00
16 lines
300 B
JavaScript
16 lines
300 B
JavaScript
|
function editor( uniqueId, textarea = document.getElementById("textarea")) {
|
||
|
|
||
|
return new SimpleMDE({
|
||
|
autosave: {
|
||
|
enabled: true,
|
||
|
uniqueId,
|
||
|
delay: 1000,
|
||
|
},// width: 100%;
|
||
|
|
||
|
element: textarea,
|
||
|
spellChecker: false
|
||
|
|
||
|
});
|
||
|
|
||
|
}
|