TinyMce Formatting is not supported by prawns

374
November 22, 2016, at 10:03 AM

I am using TinyMce Rich Text Editor in my rails application and trying to generate pdf using prawns then text formatting is not supported by prawns.

Suppose I created description using text editor as ***

- This is simple description

When I am trying to show this description in pdf using prawn then it shows as simple text like -

This is simple description.

Is there any way to show description as formatted.

           @pdf=pdf
           pdf.text "Test"
            pdf.move_down(30)
            rr = Model.find(106)
            items = [[rr.name,strip_tags(rr.definition)]]

             pdf.table(items) do |table|
                 table.rows(1..3).width = 72
             end

Thanks in advance

Rent Charter Buses Company
READ ALSO
Validate Input only on blur or loose focus

Validate Input only on blur or loose focus

I am using - victorjonsson/jQuery-Form-Validator.

363
won't redirect anymore - 302 status code

won't redirect anymore - 302 status code

Hey guys I got a 302 error code when I want to redirect my page, I'm using header().

354
Getting TypeError when iterating over an object

Getting TypeError when iterating over an object

I am using Rails, and I am getting an error in my jQuery code:.

348