Defect #3072
closed<div style=''> does not work as advertised
0%
Description
When clicking 'help' on text formatting, I am forwarded to the full textile documentation, which has the following example, at the end of section 4 (http://hobix.com/textile/#attributes):
(for the report, I've wrapped it with <pre>)
<div style="float:right;"> h3. Sidebar "Hobix":http://hobix.com/ "Ruby":http://ruby-lang.org/ </div> The main text of the page goes here and will stay to the left of the sidebar.1
The div selector is quoted in the text, instead of left as is.
My use case is that I need to change the div's direction to be "rtl", and it is impossible at the moment.
A workaround or even a hack to make it work would also be appreciated
Files
Related issues
Updated by Jean-Philippe Lang over 15 years ago
- Status changed from New to Closed
- Resolution set to Wont fix
Inline styling was disabled some time ago for security reasons.
Updated by Jean-Philippe Lang over 15 years ago
PS: if you need that feature, you can turn it on here:
source:/trunk/lib/redmine/wiki_formatting/textile/formatter.rb@2192#L33
Updated by Yuval Hager over 15 years ago
Thanks for the tip - I'll test that soon.
Updated by Yuval Hager over 15 years ago
Actually, I tried setting self.filter_styles=false
and even added self.filter_html=false, but still there is no change in behavior (div styles are escaped).
Is there any cache that needs to be cleaned for the settings to take effect? I am no ruby programmer..
Thanks,
Updated by Yuval Hager over 15 years ago
I finally managed to make it work by patching lib/redcloth3.rb (patch attached).