yabwe / medium-editor

Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.
https://yabwe.github.io/medium-editor/
Other
16.04k stars 1.86k forks source link

Editor Modes #92

Open devalnor opened 10 years ago

devalnor commented 10 years ago

Feature inspired from Mercury-Editor (http://jejacks0n.github.io/mercury/), I suggest to provide in data-medium-editorattribute 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.

ghost commented 10 years ago

+1 for everything

IonicaBizau commented 9 years ago

For markdown mode, the Medium Editor Markdown extension can do the job. It solved #26 via #406.

nmielnik commented 9 years ago

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,

bhadaway commented 5 years ago

I've actually got this started, if someone can help me complete it: #1507.