FriendsOfFlarum / pages

Create custom static pages in Flarum
https://discuss.flarum.org/d/18301
MIT License
23 stars 12 forks source link

FOF Pages dosent follow the HTML Code. #36

Closed shawny43 closed 3 years ago

shawny43 commented 3 years ago

Bug Report

Current Behavior Want to add outlook into the forum but doesn't follow the code i wanted to.

Steps to Reproduce

  1. Go to Admin Settings.
  2. Go to FOF Pages
  3. Click Add page
  4. Add code and others informations.
  5. Check HTML Support.
  6. Test it and we still not able to size the iframe.

Expected Behavior Adding an iFrame with a specific size doesn't follow and lock to the size. Impossible to adjust whats we wanted.

Here a simple code: <iframe src="https://outlook.live.com/owa/calendar/00000000-0000-0000-0000-000000000000/da18d3fe-5675-4b7f-95d6-2739a0214b74/cid-15E030418AC10077/index.html" style="width: 1000px; height: 600px;"></iframe>

Screenshots https://imgur.com/a/zuwqUT4

Environment

Output of "php flarum info", run this in terminal in your Flarum directory.

Only FreeFlarum can have access.

Possible solution(s)

Additional Context Can't update or install by myself if all extensions was managed by FreeFlarum by proof (Subdomain.Flarum.cloud). I can't install or update at all.

dsevillamartin commented 3 years ago

This extension does pass the entire HTML code.

image

The issue you're encountering is that the parent container classes have fixed widths - you should be able to solve this using a stylesheet alongside the iframe code.

shawny43 commented 3 years ago

Okay and how i can do that from CSS?

dsevillamartin commented 3 years ago

I recommend putting this in a