Hello!
How i can change link and add http or https?
This is possible? Can i intercept the url and change it?
Thanks :)
This should be configurable in the Link Format. This IS More a native
quilljs question.
I have found an old quilljs issue
https://github.com/quilljs/quill/issues/262#issuecomment-235134366
But you could Just instert an absolute url when adding a Link?
Leanvitale notifications@github.com schrieb am Mo., 11. März 2019, 19:52:
Hello!
How i can change link and add http or https?
This is possible? Can i intercept the url and change it?Thanks :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/KillerCodeMonkey/ngx-quill/issues/353, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ACKOYC5_h61zdd5NfDZgD-LcAT_RYK3nks5vVqYFgaJpZM4bpUx4
.
any updates?
how is it going?
This should be configurable in the Link Format. This IS More a native quilljs question. I have found an old quilljs issue quilljs/quill#262 (comment) But you could Just instert an absolute url when adding a Link? Leanvitale notifications@github.com schrieb am Mo., 11. März 2019, 19:52:
…
Hello! How i can change link and add http or https? This is possible? Can i intercept the url and change it? Thanks :) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#353>, or mute the thread https://github.com/notifications/unsubscribe-auth/ACKOYC5_h61zdd5NfDZgD-LcAT_RYK3nks5vVqYFgaJpZM4bpUx4 .
Thanks @KillerCodeMonkey, but how can i implement this code?
Where i need paste that?
var Link = Quill.import('formats/link');
Link.sanitize = function(url) {
// modify url if desired
return url;
}
I'm using Angular 6 and don't know where paste that..
Somewhere in your code? Before using ngx-quill.
Its simple javascript just
import Quill from "quill"
const Link = Quill.import('formats/link');
Link.sanitize = function(url) { // modify url if desired return url; }
just put this in a ts file and import it somewhere. mayb in your APPModule
Thanks @KillerCodeMonkey, i'm try this now and later do a comment if work.
i will close because it is not an issue more a question. But feel free to comment if you have a solution or need help :)
Most helpful comment
Somewhere in your code? Before using ngx-quill.
Its simple javascript just
just put this in a ts file and import it somewhere. mayb in your APPModule