Project

General

Profile

Actions

Defect #3072

closed

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

Defect #3072: <div style=''> does not work as advertised

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
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 1 (0 open — 1 closed)

Has duplicate Redmine - Defect #3222: inline html not supportedClosedActions

Updated by Jean-Philippe Lang over 17 years ago Actions #1

  • 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 17 years ago Actions #2

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 17 years ago Actions #3

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

Updated by Yuval Hager over 17 years ago Actions #4

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 17 years ago Actions #5

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

Actions

Also available in: PDF Atom