0

GitHub-style Markdown Editor

The tail.writer is a powerful library that can transform any textarea into fully-functional WYSIWYG Markup Editor. The script was written in Vanilla JavaScript, so no additional libraries are needed.

var el = document.getElementById('editor-textarea');
tail.writer(el, {
  width: '100%',
	height: [450, 500]
});

            
<div class="editor">
	<textarea id="editor-textarea" placeholder="Type in some Text...."></textarea>
</div> 
body {
    font-family: 'Roboto', sans-serif;
	font-size: 48px;
}

.editor {
	margin-top: 50px;
    
	textarea {
		width: 100%;  
      	padding: 15px;
    }
}
RUN
add comment
Suggest a different solution or add another example