If [media=*]
is in the first textarea
then bring it to the second textarea
and remove from the first.
What I start with:
<textarea style="width:400px;height:100px;" class="test_3">The classification of passenger cars as a class of wheeled vehicles, and within this class, in itself is quite conditional: some cars may be "transitional".
[media=https://youtu.be/JArIzszDb6Y]
[media=https://www.youtube.com/watch?v=JArIzszDb6Y]
The classification of passenger cars.
</textarea>
<textarea style="width:400px;height:100px;" id="test_4"></textarea>
What I want to get to:
<textarea style="width:400px;height:100px;" class="test_3">The classification of passenger cars as a class of wheeled vehicles, and within this class, in itself is quite conditional: some cars may be "transitional".
The classification of passenger cars.
</textarea>
<textarea style="width:400px;height:100px;" id="test_4">
[media=https://youtu.be/JArIzszDb6Y]
[media=https://www.youtube.com/watch?v=JArIzszDb6Y]
</textarea>