Project

General

Profile

Actions

Defect #3072

closed

<div style=''> does not work as advertised

Added by Yuval Hager over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
2009-03-30
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

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

yh.patch (496 Bytes) yh.patch Yuval Hager, 2009-04-06 10:24

Related issues

Has duplicate Redmine - Defect #3222: inline html not supportedClosed2009-04-22

Actions
Actions #1

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.

Actions #2

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

Actions #3

Updated by Yuval Hager over 15 years ago

Thanks for the tip - I'll test that soon.

Actions #4

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,

Actions #5

Updated by Yuval Hager over 15 years ago

I finally managed to make it work by patching lib/redcloth3.rb (patch attached).

Actions

Also available in: Atom PDF