Skip to content

can't embed iframe into table cell? #150

Open
@catmando

Description

Need to embed iframe in a table cell.

Tried this:

         # additional_info row
        unless action.additional_info.blank?
          row_2a = Array.new
          row_2a << Caracal::Core::Models::TableCellModel.new do |cell_doc|
            # cell_doc.p action.additional_info # THIS WORKS FINE!
            cell_doc.iframe(data: (PandocRuby.new(action.additional_info, from: 'markdown').to_docx).force_encoding('UTF-8'))
          end
          actions_data << row_2a
        end

while cell_doc.p works cell_doc.iframe throws undefined method for TableCellModel.

thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions