Commit Graph

16 Commits

Author SHA1 Message Date
bdbch
b941eea6da
feat: added jsdocs (#4356)
* added JSDocs for almost all extensions

* start adding commands jsdocs

* add jsdocs for rest of extensions

* add jsdocs for Extensions

* add js docs for all extensions

* add more jsdocs

* add js docs for node spec definitions
2024-05-11 14:30:44 +02:00
Lukas Hirt
099e10df92
fix: mark nocookie youtube url as valid when parsing html (#4883) 2024-02-19 10:32:57 +01:00
Dominik Biedebach
2bb371126e merge main 2023-11-23 09:28:26 +01:00
Cameron Hessler
1bd714a408 fix(extension-youtube) change regex to disallow non-youtube domains 2023-11-20 18:48:22 +01:00
Cameron Hessler
04a11355a7 fix(extension-youtube) XSS risk with src tag
Fixes risks outline in #4600 by verifying that any src urls are valid
youtube URLs before rendering as HTML. My thoughts are that this attack
vector would be difficult to use because the attacker would have to have
a way to manipualte the TipTap payload in a manner that bypasses the
youtube extension's `setYoutubeVideo` command, which already checks for
valid URLs.
2023-11-20 18:48:22 +01:00
Arend-Jan Tetteroo
4d79cb85c9
feat(extension/youtube): Allow youtube shorts urls to be embedded
Youtube uses /shorts/ for their shorts video. The /embed url works with these id's, the regex did not support them though.

This updates the videoId regex to also support the /shorts/ urls.
2023-09-29 14:25:14 +02:00
Ben Asher
e97630c639
Require file extensions for imports and exports (#4001)
* Require .js endings

* add extension alias for cypress to resolve ts files with js endings
2023-06-30 21:03:49 +02:00
Sven Adlung
e22b873e55
refactor(extension-youtube): command types (#3842) 2023-03-23 09:54:58 +01:00
Justin Maier
4cd35d438c
Update regex to exclude channel URL unfurling (#3750) 2023-02-18 15:06:34 +01:00
Sven Adlung
8b854b67a4
refactor(extension-youtube): rename utility function name (#3498) 2022-12-07 00:45:51 +01:00
Dominik Biedebach
4841c05c72 fix(extension-youtube): set allowFullscreen to default 2022-11-04 17:21:52 +01:00
Dominik Biedebach
bf5812461b fix(extension-youtube): remove default options from youtube extension 2022-11-04 16:51:06 +01:00
Luis Cateura
c1cf33c7bf
Feature/youtube parameters (#3307)
* Fixed allowFullscreen not working correctly. Added autoplay and progress bar color parameters

* Added cc language preference, cc load policy, disable keyboard controls, end time and interface language parameters

* Added enable IFrame API, iv load policy, loop, modest branding, origin and playlist parameters

* Updated the youtube extension documentation

Co-authored-by: luis.feliu <luis.feliu@mentormate.com>
2022-10-17 17:28:30 +02:00
Dominik Biedebach
15123ee092 feat(core): add nodePasteRule to core 2022-06-25 12:07:33 +02:00
Dominik Biedebach
ec595ff803 feat(extension/youtube): add paste handlers for youtube extension 2022-06-25 11:16:17 +02:00
Dominik
1c0554b7c0
feat(extension/youtube): new youtube embed extension (#2814)
* feat(extension/youtube):  new youtube embed extension

* fix(extension/youtube): remove wrong destroy call on undefined editor

* fix(extension/youtube): 🐛 fix youtu.be share urls not being recognized correctly

* style: remove stray console.log

* style: remove empty line

* docs(docs): update youtube docs

* Capitalize tiptap

* Capitalize Tiptap

* style(extension/youtube): ✏️ change youtube typing

Co-authored-by: Markus Krause <markus.krause@ueber.io>
2022-06-17 05:29:48 +02:00