Closed goliakshay357 closed 2 years ago
Hi, can you describe this issue more? I am interested in it.
Hello @patrikhv, When you paste a link in the embed plugin or youtube plugin. Verification/Validation of the link shud be taken care.
Steps:
Eg:
Thanks. Where is this component located?
For Embed Plugin: https://github.com/Canvasbird/canvasboard/blob/f3f95fcb431d0dacab6f443279e8bfe9c2bc4231/src/app/components/new-board/new-board.component.html#L894
You can add the click function in .ts
file and then make the logic for verification.
For Youtube Plugin:
https://github.com/Canvasbird/canvasboard/blob/f3f95fcb431d0dacab6f443279e8bfe9c2bc4231/src/app/components/new-board/new-board.component.html#L968
The function is already there in the .ts
file.
So you can just add the verification function here
Can we just use input type as url instead of text for embed link and write a simple custom regex for youtube validation? @goliakshay357
Good point.
Is your feature request related to a problem? Please describe. A link verification function before attaching the links to the embed plugin/youtube plugin