JSFiddle - React, Tailwind, and code Playground
HTML
<button type="button" class="admin_editor_link html" data-loadedtext="Main Content Editor" data-toedit="1"></button>
<button type="button" class="admin_editor_link html" data-loadedtext="Another Editor" data-toedit="1"></button>
JavaScript
var editorLinks = $(".admin_editor_link.html");
editorLinks.html(function () {
return $(this).attr("data-loadedtext");
});