Feature #20691
closed
- Related to Feature #20698: Add support for task list items in Textile formatting added
FYI this can be accomplished somewhat cleanly by creating macros in a plugin. This is the quick hack which I used, saved as plugins/redmine_wiki_checkboxes/init.rb
:
require 'redmine'
Redmine::Plugin.register :redmine_wiki_checkboxes do
name 'Redmine Wiki Checkboxes plugin'
author 'Stephane Lavergne'
description 'Adds x, z and o formatting macros'
version '0.0.2'
url 'https://github.com/vphantom'
author_url 'https://github.com/vphantom'
requires_redmine :version_or_higher => '3.4.0'
end
Redmine::WikiFormatting::Macros.register do
desc "Unchecked checkbox"
macro :o do |obj, args|
'<b style="font-size:133%;">☐</b>'.html_safe
end
end
Redmine::WikiFormatting::Macros.register do
desc "Checked checkbox"
macro :x do |obj, args|
'<b style="font-size:133%;color:#009900;">☑</b>'.html_safe
end
end
Redmine::WikiFormatting::Macros.register do
desc "Crossed checkbox"
macro :z do |obj, args|
'<b style="font-size:133%;color:#bb0000;">☒</b>'.html_safe
end
end
They cannot be used as list bullets per se, but it still opens decent possibilities.
- Related to deleted (Feature #20698: Add support for task list items in Textile formatting)
- Is duplicate of Feature #20698: Add support for task list items in Textile formatting added
- Status changed from New to Closed
- Resolution set to Duplicate
The CommonMark formatter that is available in Redmine 5.0.0 (#32424) allows adding task list items, please see #35742 for more details.
In #20698 we will track support for Textile.
Also, having a crossed checkbox is not usual so I think we should not support this feature.
Also available in: Atom
PDF