JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<textarea name="text" style="width: 50%;"></textarea>
</body>
</html>
JavaScript
var TAREA = $('body').find('textarea').length;
if(TAREA > 0){
$('head').append('<script type="text/javascript" src="files/js/nicEdit.js"></script><script type="text/javascript">bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });</script>');
};
alert(TAREA);