JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" class="css_editor" data-ident="body" data-edit="background" value="#fff" />
<input type="text" class="css_editor" data-ident="body" data-edit="color" value="#fff" />
<input type="text" class="css_editor" data-ident=".wrap" data-edit="background" value="#fff" />
<SCRIPT>
    plain_view();

alert(window.styles);    
</SCRIPT>

JavaScript

function array_event(item, i, arr){
window.styles = window.styles+"\n"+item.attr('data-ident')+' { '+item.attr('data-edit')+'; }'; // Добавляем данные в глобальную переменную
}
function plain_view(){
$('.edit_style').forEach(array_event); // Проходим по всем элементам с классом edit_style
}