allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Bondarenko" <jetmi...@gmail.com>
Subject [allura:tickets] #7955 Add more formatting support to markdown editor
Date Mon, 17 Aug 2015 14:50:30 GMT
I did some research and have opened issues with features we need to easily extend the editor.
I will be absent for the next couple of weeks, so feel free to work on pull requests for those,
or just wait for the maintainer reaction :)

1. spell checker memory leak (relevant for [#7954])  https://github.com/NextStepWebs/simplemde-markdown-editor/issues/56
2. expose `_toggle*` helpers (will help extend syntax)  https://github.com/NextStepWebs/simplemde-markdown-editor/issues/57
3. customize preview source (good to have to get rid of some copy&paste code we have)
 https://github.com/NextStepWebs/simplemde-markdown-editor/issues/58

We can add tooltips easily with something like this: `$('.editor-toolbar > a.fa-question-circle').tooltipster({content:
'Hello!'});`

Syntax highlighting will be trickier, though. We'll need to extend [GFM mode](http://codemirror.net/mode/gfm/)
of the CodeMirror and use it [here](https://github.com/NextStepWebs/simplemde-markdown-editor/blob/master/src/js/simplemde.js#L534).
Probably need to add option in SimpleMDE for it... It seems we will need to build our own
version of the editor for this (to include CodeMirror compiled with our custom code) I didn't
look at it very closely, though.


---

** [tickets:#7955] Add more formatting support to markdown editor**

**Status:** open
**Milestone:** unreleased
**Labels:** ux sf-current sf-4 
**Created:** Mon Aug 10, 2015 02:39 PM UTC by Dave Brondsema
**Last Updated:** Mon Aug 17, 2015 10:51 AM UTC
**Owner:** Igor Bondarenko


It'd be nice to add more toolbar buttons to support inserting formatting like:

* `~~~~` code blocks
* strikethrough
* backticks
* tables
* headers

Tables & headers might need a drop-down to support choosing which one, so not sure if
that is realistic.

Syntax highlighting of those elements (especially our code blocks) would be nice too, but
perhaps a lot of work?

See if we can include tooltip text on the new buttons too.  I note that our custom preview
and help buttons don't have tooltips.


---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message