Giter Site home page Giter Site logo

n00dles / mdeditor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from teddy95/mdeditor

0.0 2.0 0.0 2.42 MB

Fast and lightweight markdown editor, written in JavaScript.

Home Page: root.andre-sieverding.de/briefkasten/markdown/examples

License: Other

JavaScript 50.11% HTML 19.33% PHP 18.25% CSS 12.31%

mdeditor's Introduction

MDEditor

MDEditor is a simple Markdown editor.


Benefits

  • Write text in Markdown and look at it in a preview
  • Upload files and photos
  • Export text as Markdown or HTML

Installation

You need jQuery version 1.11.0 or higher and Font Awesome version 4.1.0 or higher!
If you doesn't use themes, you need bootstrap!

HTML markup:

<textarea id="mdeditor" name="mdeditor"></textarea>

Without options:

$("#mdeditor").mdeditor();

With options:

$("#mdeditor").mdeditor({
	output: 'markdown', // choose between markdown and html
	language: 'en-US', // language of editor
	width: '100%', // width of editor
	height: '250px', // height of textarea in the editor
	specialBar: true, // includes the second (special) toolbar
	formControl: true, // includes form submit, reset and a go back button
	codeIcon: true, // includes button for code markup
	mailIcon: true, // includes button for a mail hyperlink markup
	phoneIcon: true, // includes button for a phone hyperlink markup
	headerIcon: true, // includes button for a header markup
	helpIcon: true, // includes help button
	preview: true, // includes preview button
	attachment: true, // includes attachment button
	attachmentDir: 'attachment/', // select attachment directory
	wordCounter: true, // includes word counter
	includeTipsy: true, // includes tipsy, if you haven't already done this
	syntaxHighlighting: true, // activate syntax highlighting in code examples (highlight.js)
	wordWrap: true, // wordwrap in textarea
	theme: false, // choose a theme -> false = no theme
	tabs: true, // activate tabs in textarea
	lineBreaks: true, // activate line breaks in markdown (insert automatically 2 white spaces)
	maxUpload: 2000000, // 2MB
	notUpload: [
		'php',
		'py',
		'rb',
		'pl'
	] // .php, .py, .rb and .pl files aren't allowed for upload
});

Browser support

Browser Version
9 or higher
Works! Tested in version 35
Works! Tested in version 29
Not tested - Tell us!
Not tested - Tell us!

Markdown -> HTML

MDEditor use chjj/marked to transform Markdown into HTML.
core/marked.js


Examples

examples/ - Directory with examples
MDEditor wiki - Examples


Documentaion

https://github.com/Teddy95/MDEditor/wiki


Download


Contributors


License

The MIT License (MIT) - View LICENSE.md

mdeditor's People

Contributors

teddy95 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.