Skip to content
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

Link inlineToolbar not working #3

Open
foarsitter opened this issue Jul 11, 2022 · 19 comments
Open

Link inlineToolbar not working #3

foarsitter opened this issue Jul 11, 2022 · 19 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@foarsitter
Copy link

Thanks for providing this amazing tool. It helps us to achieve a higher level of content creation of our users.

Enabling the inlineToolbar for the paragraph tool is not working for the link tool. Any clues how to solve this?

Here is a modified version of the example.html illustrating the problem: https://gist.github.com/foarsitter/ece006ffc97d41f5d2228a16f194b1ef

@calumk
Copy link
Owner

calumk commented Jul 11, 2022

Thanks for providing this amazing tool. It helps us to achieve a higher level of content creation of our users.

Thanks!

Enabling the inlineToolbar for the paragraph tool is not working for the link tool. Any clues how to solve this?
Here is a modified version of the example.html illustrating the problem: https://gist.github.com/foarsitter/ece006ffc97d41f5d2228a16f194b1ef

Hmm - This is strange.
I see the problem, but i cant work out whats causing it... It seems to be the same issue for the standard paragraph tool, and works when its not in a column.

I suspect there is something going on here with the way editor.js clears / deals with toolboxes. - It might be that nesting it causes some issues, or that the two instances search for the toolbar globally in the dom etc....

Ill keep looking.

@bekiroeztuerk
Copy link

bekiroeztuerk commented May 17, 2023

Hello @calumk ,

Do you have a solution for this? I have the same problem.

@aacoelho
Copy link

aacoelho commented Nov 3, 2023

I'm experiencing the same issue. Any news about this?

@sureshHARDIYA
Copy link

sureshHARDIYA commented Dec 9, 2023

link_not_working.mp4

I am having same issue. Has anyone found the solution to this? Interestingly, when you copy past article with links from somewhere and paste, it sustains the link.

@calumk
Copy link
Owner

calumk commented Dec 9, 2023

Hello all - really sorry but no i never found a solution for this

when you copy past article with links from somewhere and paste, it sustains the link.

Yes, the issue is not with the data stored, it is probably related to having multiple instances of EditorJS in the same webpage. Maybe something like popups is stored globally

@Tomnuyts
Copy link

Tomnuyts commented Feb 9, 2024

It's indeed true that this has to do with nesting editorjs instances.
Check out this pull request for more information about this issue: codex-team/editor.js#2581

@calumk
Copy link
Owner

calumk commented Feb 9, 2024

Thankyou for finding this issue

If you can propose a solutionor pull request to solve it somehow then I am very happy to implement

@Tomnuyts
Copy link

Tomnuyts commented Feb 9, 2024

Problem is this can only be fixed in editorjs itself. So I forked the editorjs repo and made the necessary changes in the file to get it working. Hopefully they will approve the pull request or provide a fix themselves soon, so that I can switch back to the original repo.

@calumk calumk added bug Something isn't working help wanted Extra attention is needed labels Feb 27, 2024
@vFire
Copy link

vFire commented Feb 28, 2024

When the link is in columns, everything is works only except the popup window will hide imediately, so make it unavailable, are there any hack to view the popup?

@vFire
Copy link

vFire commented Feb 28, 2024

Problem is this can only be fixed in editorjs itself. So I forked the editorjs repo and made the necessary changes in the file to get it working. Hopefully they will approve the pull request or provide a fix themselves soon, so that I can switch back to the original repo.

Are there any chance that help me on how to change in the fork of editorjs? Much appreciated.

@calumk
Copy link
Owner

calumk commented Feb 28, 2024

When the link is in columns, everything is works only except the popup window will hide imediately, so make it unavailable, are there any hack to view the popup?

At the moment, I have no solution

I /think/ the fork at : https://github.com/loucass003/editor.js/tree/next will fix this.
You could try to clone and build this fork to see - I have not done this yet.

@vFire
Copy link

vFire commented Mar 1, 2024

I just found once click in the any column area will trigger all editorjs instances saving... Maybe this will prevent the link popup editing modal from visibility.

@Tomnuyts
Copy link

Tomnuyts commented Mar 1, 2024

When the link is in columns, everything is works only except the popup window will hide imediately, so make it unavailable, are there any hack to view the popup?

At the moment, I have no solution

I /think/ the fork at : https://github.com/loucass003/editor.js/tree/next will fix this. You could try to clone and build this fork to see - I have not done this yet.

This fork does indeed fix the issue.

@calumk
Copy link
Owner

calumk commented Mar 1, 2024

So then our best bet at the moment is to promote : codex-team/editor.js#2581

@calumk
Copy link
Owner

calumk commented Mar 2, 2024

Looks like there is some progress on codex-team/editor.js#2581

Once it merges, i will test, make some updates, and push a new version

@sureshHARDIYA
Copy link

Depends on how soon PR owner makes requested changes

@DinandN
Copy link

DinandN commented Aug 21, 2024

Any news on this problem yet?

@calumk
Copy link
Owner

calumk commented Aug 21, 2024

7 days ago there was some progress

codex-team/editor.js#2780

Looks like we might finally have a solution in the next release of editorjs

@calumk
Copy link
Owner

calumk commented Oct 29, 2024

Hey - It looks like this finally got merged last month, so I will do some testing, check it works, and close this issue in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants