ritz078 / embed-js

🌻 A lightweight plugin to embed emojis, media, maps, tweets, code and more. ✨
https://codesandbox.io/s/Wp5OlNMn
MIT License
1.27k stars 88 forks source link

Only render embed code #246

Closed thasmo closed 6 years ago

thasmo commented 7 years ago

Is there an option to only render the embed-code without the input text? I'd like to use this to embed video elements, github gists etc. without the original input text.

const embed = new EmbedJS({
    input: 'https://www.youtube.com/watch?v=dKrVegVI0Us',
});

// should only render the embed itself but not `https://www.youtube.com/watch?v=dKrVegVI0Us`
ember.render(); 

If this is not yet possible I'd love to see the possibility to do so.

ritz078 commented 7 years ago

use inlineText: false

ritz078 commented 6 years ago

Closing due to inactivity.