JSFiddle - React, Tailwind, and code Playground
by ponyspy
HTML
<textarea id="field_id_29"></textarea>
JavaScript
$("#field_id_29").bind("keyup", function() {
var text = $(this).val();
var date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var year = date.getFullYear();
text = text.replace(/date/g, day + '.' + month + '.' + year)
text = text.replace(/dd/g, day)
text = text.replace(/dm/g, month)
text = text.replace(/dy/g, year)
text = text.replace(/source/g, "www")
$(this).val(text);
});