editorjs-columns icon indicating copy to clipboard operation
editorjs-columns copied to clipboard

Link inlineToolbar not working

Open foarsitter opened this issue 3 years ago • 19 comments

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

foarsitter avatar Jul 11 '22 12:07 foarsitter

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.

calumk avatar Jul 11 '22 17:07 calumk

Hello @calumk ,

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

bekiroeztuerk avatar May 17 '23 10:05 bekiroeztuerk

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

aacoelho avatar Nov 03 '23 13:11 aacoelho

https://github.com/calumk/editorjs-columns/assets/2022919/156c2307-daf3-4236-be12-4a5cf5e80769

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.

sureshHARDIYA avatar Dec 09 '23 11:12 sureshHARDIYA

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

calumk avatar Dec 09 '23 12:12 calumk

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

Tomnuyts avatar Feb 09 '24 13:02 Tomnuyts

Thankyou for finding this issue

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

calumk avatar Feb 09 '24 14:02 calumk

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.

Tomnuyts avatar Feb 09 '24 14:02 Tomnuyts

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 avatar Feb 28 '24 17:02 vFire

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.

vFire avatar Feb 28 '24 17:02 vFire

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.

calumk avatar Feb 28 '24 17:02 calumk

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.

vFire avatar Mar 01 '24 07:03 vFire

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.

Tomnuyts avatar Mar 01 '24 10:03 Tomnuyts

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

calumk avatar Mar 01 '24 10:03 calumk

Looks like there is some progress on https://github.com/codex-team/editor.js/pull/2581

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

calumk avatar Mar 02 '24 07:03 calumk

Depends on how soon PR owner makes requested changes

sureshHARDIYA avatar Mar 02 '24 07:03 sureshHARDIYA

Any news on this problem yet?

DinandN avatar Aug 21 '24 13:08 DinandN

7 days ago there was some progress

https://github.com/codex-team/editor.js/pull/2780

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

calumk avatar Aug 21 '24 17:08 calumk