Hi,
As many of you have noticed, the Simple Text block currently converts all unordered lists into ordered lists.
As a temporary solution, please use the following code:
Go to Page Settings > Custom Code > Header Section.
Replace BlockID with the ID of your Simple Text block.
We will keep you updated once this issue is fixed and the custom code is no longer required.
Thank you for your patience!
<script>
// Function to change all <ol> elements to <ul> inside the #BLOCKID
function changeOlToUl() {
const prosConsDiv = document.getElementById('BLOCKID');
// Find all <ol> elements inside the prosCons div
const olElements = prosConsDiv.getElementsByTagName('ol');
// Loop through all found <ol> elements
Array.from(olElements).forEach(ol => {
const ul = document.createElement('ul'); // Create a <ul> element
// Move all <li> elements from <ol> to <ul>
while (ol.firstChild) {
ul.appendChild(ol.firstChild);
}
// Replace the <ol> with the newly created <ul>
ol.parentNode.replaceChild(ul, ol);
});
}
// Call the function to change <ol> to <ul>
changeOlToUl();
</script>