danielunited This extension only enables existing TextFormatter plugins. You can definitely enable the functionality to embed custom iframes, but you'll have to hook into TextFormatter regardless of whether this extension is being used or not.

It may be possible to hook into MediaEmbed, I can't remember. Either way, you need to use PHP code for that.

14 days later

0.3.0

  • Flarum beta 15 support

0.3.1

  • Update settings modal, integrate with new admin UI
  • Requires Flarum beta 15+
Updating
composer require fof/formatting:"*"
php flarum cache:clear
a month later

Why isn't there padding between columns?

| Task | Status | Notes |
| :- | :- | :- |
| Install tables plugin for forums | done | |
| set up repo | done | |
| Figure out how to put spaces between columns in these tables | frustrated | seriously why |

    ScottBeeson you mean lines or dividers? You can easily give some markup to those tables by adding some styling in the admin area? Or am I missing something?

    I'm talking about padding in the rendered table. See the screenshot? No space (padding) between tables|frustrated|seriously

      ScottBeeson

      Elements of a table are wrapped in an TD element. If you want some padding, you can do that forum wide via a styling rule like that:

      .CommentPost td {
          padding: 4px 8px;
      }

      This will apply 2 * 8 px between elements horizontally and 2 *4 px vertically.

      21 days later

      Can we embed a pdf to display in a post? I have been reading several posts about this and it confused me out and several of them are about 4 years old and hence asking. Say we have a .pdf file either as attachment or just a URL, how do we show it up as an embedded item within the post so viewers can ready through / view the file without downloading it?

        kris88 you have 3 options:

        • Make a custom extension, for example with a custom bbcode
        • Add a template for TextFormatter's MediaEmbed feature. You will need an iframe-based solution to render the PDF, either self-hosted or remote
        • Modify an extension like fof/upload to add previews for uploaded files

        There is no ready to use solution at this time.

          clarkwinkelmann thanks... I know that we can use an iframe with google docs pdf viewer in a HTML page. Would you be able to point me to how to create a template for TextFormatter's MediaEmbed feature?

          iPurpl3x have exactly the same problem on all forums I use

          in the CSS code I deactivate 2 little padding / margin and seems to resolve this problem

            Amarok and seems to resolve this problem

            How can you resolve this ? Using the DevTools ok, but you cannot write code to change the CSS of what is inside of the iframe ... The browser won't let you as the does not respect CORS.

              9 days later
              • [deleted]

              How can add html code by using this extension? I want to add iframe tags to my posts

                When users upload videos that the pixels is wider than mobile screen. The video is stretched that one needs to pan the screen. Is there a way I can make reduce the video to the resolution of the screen.

                  • [deleted]

                  Ffuser1 you could do this with custom CSS I expect ?

                    [deleted] please help with the custom CSS that can do that. Or at least on how to access the element with LESS