Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't embed iframe into table cell? #150

Open
catmando opened this issue Nov 18, 2021 · 1 comment
Open

can't embed iframe into table cell? #150

catmando opened this issue Nov 18, 2021 · 1 comment

Comments

@catmando
Copy link

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!

@catmando
Copy link
Author

Looks like

Caracal::Core::Models::TableCellModel.class_eval do

is missing the include for the IFrames module??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant