Open link in a new tab

Content

Expand project menu

Wiki textism

Problem:
I’ve made a table in the Wiki and would like some of the cells to have a separate color as a background.

What i’ve done:

|Something|Something more|{background:#ddd}. Something else|
|Something and so on.|

The background syntax is ignored and doesn’t do anything. The background tag is not visible so the tag is accepted but not active or shown.

Is there something to do about this?

Message actions

I’m also looking for answers as similar threads were left without answers:

Color Formatting in Wiki using Textile
Allowing Textile inline styles/HTML in Wiki markup

We want true colors, hopefully not limited to Enterprise edition as Redmine does it just fine!

Message actions

Hey replying to myself: such styles are disabled by default. The only way I know is to patch the source lib/redmine/wiki_formatting/textile/formatter.rb where you need to set self.filter_styles = false

It might be disabled by some security issues, but as it was said before, the original Redmine handles this just fine.
This way your formatting works & I actually was missing this feature, so thanks for bringing it up again.

Perhaps there should be a feature request to make this option toggable through the admin panel, instead of getting into the code?

Message actions

Hi everyone,

this was disabled by default in Redmine prior to forking in commit 35f5e36838952a20693c8d6fa2a926648739a975 and we haven’t touched it since. Redmine seems to have implemented a whitelist of styles to allow: http://www.redmine.org/projects/redmine/repository/revisions/8860/diff/

Apart from overriding the setting locally - if you want to port this over, we would accept a PR. It should be pretty straightforward but it’s not what we’re currently focussing on.

Best,
Oliver

Message actions

Well let’s start with a task OP-3697