Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Wiki textism

Wiki textism

Added by Stephan Heinrichsen almost 8 years ago

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?


Replies (4)

RE: Wiki textism - Added by Bartłomiej Stobiecki almost 8 years ago

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!

RE: Wiki textism - Added by Bartłomiej Stobiecki almost 8 years ago

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?

RE: Wiki textism - Added by Oliver Günther almost 8 years ago

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

RE: Wiki textism - Added by Bartłomiej Stobiecki almost 8 years ago

Well let’s start with a task #25260

  • (1 - 4/4)
Loading...