medium-editor
medium-editor copied to clipboard
Editor Modes
Feature inspired from Mercury-Editor (http://jejacks0n.github.io/mercury/), I suggest to provide in data-medium-editor
attribute for different modes.
The basics
Full HTML Mode Full HTML markup enabled feature. These are the core of the actual editor does.
Simple Mode Plain text, newlines and markup aren't allowed. Appropriate for titles, headlines, or any area where you want just the content and not the styles.
Nice to have
Markdown Mode Based on the Github flavored Markdown syntax. These are useful if you want to keep the markup flexible, "while still clean and simple". This is refer to https://github.com/daviferreira/medium-editor/issues/26
Image Mode Already exists in as a plugins (http://orthes.github.io/medium-editor-images-plugin/) Only applied to image tags, it results in the image being drag-and-drop replaceable. Great for images you don't want within content regions.
Maybe one day?
Snippets Regions Allows snippets but not content. Snippets are chunks of reusable markup or code defined by a developer and can be placed into content later.
Custom Regions When the provided regions don't give you what you need, create your own based on your specific needs. You'll be the most appreciated developer.
+1 for everything
For markdown mode, the Medium Editor Markdown extension can do the job. It solved #26 via #406.
I think this is a really interesting idea, it could be useful to group together sets of options into 'modes', or just implement these modes as new functionality if there isn't a combination of existing options to accomplish this,
I've actually got this started, if someone can help me complete it: #1507.