Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
bugs fixed
  • Loading branch information
beautylix committed Jul 12, 2024
1 parent afddfd1 commit ea9f520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
>
> [sub]text[/sub]
>
> [video]text[/video]
> [video]URL[/video]
>
> [audio]text[/audio]
> [audio]URL[/audio]
8 changes: 4 additions & 4 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
);

$config->BBCodes->addCustom(
'[video]{TEXT}[/video]',
'<video src="TEXT" controls></video>'
'[video]{URL}[/video]',
'<video controls><source src="{URL}" /></video>'
);

$config->BBCodes->addCustom(
'[audio]{TEXT}[/audio]',
'<audio src="TEXT" controls></audio>'
'[audio]{URL}[/audio]',
'<audio controls><source src="{URL}" /></audio>'
);


Expand Down

0 comments on commit ea9f520

Please sign in to comment.