-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embed not visible in toolbox #11
Comments
The |
Yep same here. Not seeing in toolbox. |
Hey there! Embed is inserted to the page when you paste link to the resource into the paragraph block. There is no icon in toolbox because tool doesn't have UI for "empty" case. |
Oh sweet! It works. My bad I didn't really notice this in the description. |
Will add a note about that into README |
It's sort of in there already. I think it's human nature thing because pretty much all the other plugins have a toolbox icon and other editors tend to have an icon, you don't expect this to be different but it works great. I imagine most people are not reading the description they just want to get this cool tool installed. Really great work on all of this by the way. |
Please, add icon to toolbox |
Doh, I just tripped over this too. Must read the docs.... must read the docs. |
Посмотрел ссылку на документацию, но к сожалению, не понятно как установить иконку. Можно привести пример, того как это сделать? |
можно форкнуть плагин, добавить в метод |
@gohabereg This still doesn't work for me for some reason. When I paste a youtube link into the paragraph text it saves as normal text (i.e. I notice the same thing happens in the demo ( although the demo outputs a Am I missing something? Thanks again for the fantastic work on this editor and the plugin system. It's great stuff. |
No icon is a UX nightmare!! Cannot understand why it's not there. The people using this are likely users on the front end, who aren't expected to read documentation on how to use, heck they wont even know what they are using apart from nice front end form. I think, as someone above states the first place they will look to embed something is in the toolbar where everything else is? Maybe a nice box to paste a link would suffice? I think the fact that code literate people struggle to realise this tells you that normal users would suffer also.... |
In fact what it is missing it a static toolbar always shown for embed inline or block injections, let's say it is a menubar with item buttons to inject embed blocks. This is not handled by the actual toolbar because the actual toolbar for inline stuff is shown and applies on text selection. Then the request is similar to issue insert() embed programmatically #16 . I replied there. |
Damn, I was stuck on this for HOURS. Would be great if there was an icon in the toolbox - easy to miss in the documentation, also a bit confusing from a UX perspective. |
my humble opinion: even though it technically provides no advantage you should still add the possibility for inlineToolbox icon, since many non-powerusers will otherwise instantly forget that the feature is there. please merge #71 or provide a better reason why you don't want to thanks :) |
if anyone's still dealing with this & it hasn't been fixed yet, just in case - adding the toolbox data step by step:
|
This is a great plugin but the way embed actually works is not user friendly. (keep in mind that most user ARE NOT developers, they just want button & click, for some of them event a copy paste is difficult) From an end-user perspective, it's always best that inserting some content in a text editor is an action that respond to a button click. Add an option to allow inserting an icon that display a text field where the user can paste URL will be fine and surely improve that way your plugin is used (and amount of user also) |
Agree with majority of the commenters here. It's not an optimal experience that every other tool is available as a toolbar icon, and embed is like an 'aha moment'. Most users wont paste the URL in the paragraph expecting it to turn into an embed, they might skip posting it altogether. It would be great to have a toolbar icon for |
Use this fix if you get an error when entering yarn build: expo/expo-cli#4619 |
For those interested, adding a title and icon in the toolbox introduces a bug. By instantiating the embed plugin through the toolbox, rather than through a paste event in the paragraph plugin, the editor builds an empty embed object... resulting in empty frames in your front end. I wonder why there's no validation method in this embed plugin? The embed plugin also uses deprecated api methods, so hopefully they'll rebuild this soon and account for the "missing ui". |
Can't believe still the toolbox is not available(almost 5 years passes!). result: 9e36268e-1c77-482e-8bd8-6f0a1983b37c.mp4index.js:
FYI: my code is just for POC. |
I've also overwritten the original Embed Block Tool to show an input field where you can paste the URL! you must also overwrite the render function, and add a validate function (otherwise empty embed blocks will be saved)! I just did this here: https://gist.github.com/bettysteger/9d613904c2b14c15182e6204863b79b3 |
The solution is straightforward: the Embed tool doesn't show an icon. However, if you paste a link (e.g., a YouTube link) directly into the editor, the YouTube video will be embedded automatically. |
Tried to include the embed plugin in toolbox, Everthing is working without errors, but its not visible in the toolbox.
The text was updated successfully, but these errors were encountered: