Defect #26442
openCSS formating classes like p(box). prepended with wiki-class-
Added by Hal Glenn over 7 years ago. Updated about 6 years ago.
0%
Description
This worked in the 3.3 trunk, updated to 3.4 and box's are no longer there but text is still displayed.
This method of text formatting was taken from the "Mastering Redmine Book" page 322.
Files
Capture.PNG (36.7 KB) Capture.PNG | Hal Glenn, 2017-07-14 19:03 | ||
source.png (2.49 KB) source.png | Toshi MARUYAMA, 2017-07-14 19:37 | ||
html.png (35.5 KB) html.png | Toshi MARUYAMA, 2017-07-14 19:37 |
Updated by Toshi MARUYAMA over 7 years ago
- Status changed from New to Needs feedback
Please describe more details.
Updated by Hal Glenn over 7 years ago
- File Capture.PNG Capture.PNG added
This worked in 3.3, but does not in 3.4
Updated by Toshi MARUYAMA over 7 years ago
- File html.png html.png added
- File source.png source.png added
I cannot reproduce.
Updated by Mischa The Evil over 7 years ago
Toshi, I can confirm it. As is also visible in the screenshot from the referenced book, before r16502 it was possible to reuse the core CSS classes (like box
, conflict
, etc.) in the content. This is not possible any longer after r16502, as these classes get wiki-class-
prefixed as visible in your screenshot.
Updated by Jean-Philippe Lang over 7 years ago
- Subject changed from Calling CSS formating classes like p(box). do not work in 3.4 to CSS formating classes like p(box). prepended with wiki-class-
Mischa The Evil wrote:
Toshi, I can confirm it. As is also visible in the screenshot from the referenced book, before r16502 it was possible to reuse the core CSS classes (like
box
,conflict
, etc.) in the content. This is not possible any longer after r16502, as these classes getwiki-class-
prefixed as visible in your screenshot.
Yes, the change was made on purpose in order to prevent arbitrary CSS classes from being used in formatted text. It was reported as a vulnerability and fixed in 3.4.
All user entered CSS classes are now prefixed with wiki-class-
and ids with wiki-id-
. We can still add support for some of them in the default stylesheet. It will be better to have dedicated CSS classes for formatted text instead of using those of the core that can change.
Can we make a list of usefull classes that should be made available for formatted text?
Updated by Hal Glenn over 7 years ago
For what is is worth, I only am aware or use the two that the book mentions: p(box) and p(conflict). Digging into the CSS to understand what options we could have for advanced text formatting and display is not something we have done. The addition of having these two has enhanced the clarity of our document / issue presentation so having them is nice. Possibly there are others as well that could be useful but I have not seen any documentation on what they may be, and I do not have sufficient base knowledge of where to go looking for them or the need.
Updated by Mischa The Evil over 7 years ago
- Assignee set to Mischa The Evil
I'll take a look at this.
Updated by Hal Glenn over 6 years ago
Is there anything I can do to help support this issue? I'm assuming others have used this feature in the past, especially being that it was published in the Mastering Redmine book. p(conflict) and p(box) are currently the only ones I'm familiar with.
I do like Jean-Philippe's comment about having a published list that we (users) can reference. If it was published it would greatly enhance peoples ability to create rich content in redmine. Being that there is no new CSS, it is just using vetted code, there is little maintenance overhead added to having these methods available to the users.
Updated by Matt Bertapelle over 6 years ago
Is there an update to this? Our organization has metric-ton of wikis and tickets in Redmine that use p(conflict) and p(box), as others have said, because they're really nice and convenient. Looking to update soon, too, and hoping that we can just jump to 3.4.7 with this function/equivalent restored ;-)
Updated by Hal Glenn about 6 years ago
Is there a way to patch issues with the current system to get the site wide CSS p(box) and p(conflict) to work again with wiki-class prefixes added to them? Would it be appropriate to add that to our current theme's style sheet to regain support for this very useful formatting feature again?