Code: Select all
<audio id="player2" src="uploads/media/audio/mp3name.mp3" type="audio/mp3" controls="controls">
</audio>Code: Select all
<audio id="player2" src="uploads/media/audio/mp3name.mp3" type="audio/mp3" controls="controls">
</audio>Thanks for that but coding is not my forte and I need the html audio tag so it plays in all browsers especially mobile and i beleive flash will not work on ipad iphone etcRolf wrote:Use a GCB or a tag like https://www.cmscanbesimple.org/blog/mp3-made-simple
Rolf wrote:Ohw wait... Try https://www.cmscanbesimple.org/blog/fle ... wyg-editor Is written for CGBlog but with small parameter change will also work for News module
Grtz. Rolf
If I'm not wrong there are a few ways to tackle this (besides what Rolf suggested):midway31 wrote:TinyMCE strips this code and need a solution as to how to use it in the news module for audio. Any suggestions please?Code: Select all
<audio id="player2" src="uploads/media/audio/mp3name.mp3" type="audio/mp3" controls="controls"> </audio>
Code: Select all
<audio id="player2" src="{$entry->fields.foo->value}" type="audio/mp3" controls="controls">
</audio> Code: Select all
<audio id="player2" src="{$gcb_params.src}" type="audio/mp3" controls="controls">
</audio> Code: Select all
{global content name='Player' src='uploads/media/audio/mp3name.mp3'} Code: Select all
echo '<audio id="player2" src=" ' . $params['src'] . '" type="audio/mp3" controls="controls"';Code: Select all
{Audio_Player src='uploads/media/audio/mp3name.mp3'}Code: Select all
{Audio_Player src='uploads/media/audio/mp3name.mp3'}