editor-js / link-autocomplete Goto Github PK
View Code? Open in Web Editor NEWAn upgraded version of base inline link tool with your server's search.
An upgraded version of base inline link tool with your server's search.
E.g. instead of searching for link using a whole server just have a function that handles it.
This is such an amazing tool! Thank you!!
Would it be at all possible to allow us to send additional headers along with the request, as we can do with the "Image" plugin?
Pasting or typing a link such as mailto:[email protected]
is inserted as a link
Error message "Link URL is invalid" is shown.
Expected behaviour: Pasted URLs are recognised as such and a single result with the URL is shown. Clicking on this result should add the link to the text and close the hyperlinking dialog (like hitting enter after pasting).
Actual behaviour: Clicking on the single result holding the URL raises TypeError: null is not an object (evaluating 'n.dataset')
Steps to reproduce: Highlight some text, click on "Link Autocomplete", paste a URL, wait for result to be shown, click on result.
Hi, thanks a lot for this tool !
While trying to customize the link-autocomplete tool, I wanted to use it without server endpoint.
It appears that, when you do not provide an endpoint
in the config, the tool still considers that there is actually an endpoint.
I looked at the code carefully and there is a very simple fix:
in the file src/index.js
, the method isServerEnabled()
lacks the operator get
.
This is why this kind of expression this.isServerEnabled ? DICTIONARY.pasteOrSearch : DICTIONARY.pasteALink
always picks DICTIONARY.pasteOrSearch
.
I hope this can be useful.
Cheers !
Expected behaviour: Hitting CTRL/CMD+K while having a non-empty range should show the hyperlinking dialog as it does in editorjs' default hyperlinking module.
Actual behaviour: Hitting CTRL/CMD+K while having a non-empty range has no effect.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.