Coder Social home page Coder Social logo

Width and height params do not work about oembed HOT 5 CLOSED

wrav avatar wrav commented on July 27, 2024
Width and height params do not work

from oembed.

Comments (5)

reganlawton avatar reganlawton commented on July 27, 2024 1

@migswd you now have the option to override the width and height, see v1.2.5. I'll also be opening an issue / feature where I'll add support to override / set / manage all iframe DOM. attributes to allow overriding of attributes and adding missing / custom attributes as most my issues are managing attributes πŸ˜…

THanks for opening an issue and hope this fixes your edgecase πŸ‘

from oembed.

reganlawton avatar reganlawton commented on July 27, 2024

@migswd firstly thanks for submitting an issue.

Now the Param field is used to modify the URL query string not the iframe params. However it seems this isn’t the case for you at all. Do you have cache enabled by chance? The width is normally controlled by CSS HOWEVER I can update the DOM manipulation to support updating the width and height attributes.

from oembed.

migswd avatar migswd commented on July 27, 2024

Yes I have cache enabled. I switch it off and I see the url with all params now.
image

So to modify width and height I should use css or do that ?
entry.fieldname.render|replace('width="600"','width="100%"')|raw

That would be great that you update the plugin to take that manipulation in charge yes :)

from oembed.

migswd avatar migswd commented on July 27, 2024

from oembed.

jdsimcoe avatar jdsimcoe commented on July 27, 2024

Hey @reganlawton previously I had two CSS classes on my iFrame that did formatting with. Now, with oEmbed I'm having trouble figuring out how to add these classes via the API. Is there a way to do this?

from oembed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.