medium-editor icon indicating copy to clipboard operation
medium-editor copied to clipboard

Editor Modes

Open devalnor opened this issue 10 years ago • 4 comments

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.

devalnor avatar Nov 18 '13 20:11 devalnor

+1 for everything

ghost avatar Mar 02 '14 13:03 ghost

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

IonicaBizau avatar Feb 08 '15 16:02 IonicaBizau

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,

nmielnik avatar Jun 24 '15 22:06 nmielnik

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

bhadaway avatar May 09 '19 19:05 bhadaway