Skip to content

Customize node view with html content inside an svg element #167

Answered by rsoika
zairiint asked this question in Q&A
Discussion options

You must be logged in to vote

Your embedded code should look like this:

<foreignObject
        requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"
        height="125"
        width="720"
        x="0"
        y="0"
      >
        <div>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        Nam at tellus quis lacus auctor congue vel sit amet lectus.
        Cras interdum lectus vel enim mollis maximus.
        </div>
      </foreignObject>

Remove the body tag, change the tag name to foreignObject (case sensitive) and add the 'requiredFeatures'.

Also see the chapter ForeignObjectView here

I did a short test about this:

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@zairiint
Comment options

Comment options

You must be logged in to vote
1 reply
@zairiint
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by zairiint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants