Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Wiki.js
  3. Allow iframe on wiki.js

Allow iframe on wiki.js

Scheduled Pinned Locked Moved Solved Wiki.js
wikijs
6 Posts 3 Posters 11.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ruihildtR Offline
      ruihildtR Offline
      ruihildt
      wrote on last edited by girish
      #1

      I'd like to allow iframe to be rendered when using HTML editor of pages.
      To do it, I need to modify server/modules/rendering/html-security/rendering.js and add this to whitelist:

      iframe: ['src', 'class', 'style']

      My only problem is that this is to be configured in a file that is in /app/code.
      Is there a way for me to do it?

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @ruihildt In the Admin page of WikiJS -> General, there is a security section:

        26caf0f3-b921-492b-a34c-99b8e6d23495-image.png

        ruihildtR 1 Reply Last reply
        1
        • girishG girish

          @ruihildt In the Admin page of WikiJS -> General, there is a security section:

          26caf0f3-b921-492b-a34c-99b8e6d23495-image.png

          ruihildtR Offline
          ruihildtR Offline
          ruihildt
          wrote on last edited by
          #3

          @girish This setting is for "preventing other websites from embedding my wiki in an iframe". While, what I'm trying to do is to allowing embedding of an external iframe.

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by girish
            #4

            @ruihildt Can you try this comment that says:

            I'm able to use iframes without issue in HTML and Markdown pages. 
            Note that you first need to disable HTML sanitization under
            Administration -> Rendering -> (HTML -> HTML) -> Security.
            
            ruihildtR L 2 Replies Last reply
            3
            • girishG girish

              @ruihildt Can you try this comment that says:

              I'm able to use iframes without issue in HTML and Markdown pages. 
              Note that you first need to disable HTML sanitization under
              Administration -> Rendering -> (HTML -> HTML) -> Security.
              
              ruihildtR Offline
              ruihildtR Offline
              ruihildt
              wrote on last edited by
              #5

              @girish That works for me, thanks a lot, I'll search more next time before bothering you.

              1 Reply Last reply
              1
              • girishG girish

                @ruihildt Can you try this comment that says:

                I'm able to use iframes without issue in HTML and Markdown pages. 
                Note that you first need to disable HTML sanitization under
                Administration -> Rendering -> (HTML -> HTML) -> Security.
                
                L Offline
                L Offline
                Lpndn
                wrote on last edited by
                #6

                @girish said in Allow iframe on wiki.js:

                @ruihildt Can you try this comment that says:

                man, you made my day!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search