taqueci / redmine_wysiwyg_editor

Redmine WYSIWYG Editor plugin
GNU General Public License v2.0
115 stars 27 forks source link

collapse support #56

Closed kay54068 closed 4 years ago

kay54068 commented 4 years ago

Hi @taqueci Textile format have collapse macro ,how can I implement it?

collapse macro example:

{{collapse(View details...)
This is a block of text that is collapsed by default.
It can be expanded by clicking a link.
}}
taqueci commented 4 years ago

I had considered macro input method on visual mode, but I have no good idea.

You need to implement:

  1. Custom menu and dialog to input macro
  2. Convertion to Textile/Markdown
  3. Convertion to visual mode content

You can add menu and dialog by:

It's difficult to convert Textile/Markdown <-> visual content. I hope you can make it.