prism code visualizer and json editor

This commit is contained in:
Pau Capó 2021-05-21 18:05:20 +02:00
parent 3b99908958
commit ae30cb558e
7 changed files with 214 additions and 5 deletions

View file

@ -35,7 +35,7 @@ class AdminerXMLColumn
$name = $field['field'];
?>
<a href="#" id="toggle_xml_<?= $name ?>">show as table</a><br>
<pre id="show_xml_<?= $name ?>" style="display: none"><code><?= $xml ?></code></pre>
<pre id="show_xml_<?= $name ?>" style="display: none"><code class="language-xml"><?= $xml ?></code></pre>
<script <?= nonce() ?>>
document.getElementById('toggle_xml_<?= $name ?>').addEventListener('click', function (e) {
e.preventDefault();