Commit 290309b9 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

display wysiwyg

parent f3f77603
......@@ -825,6 +825,15 @@ function showWysiwygModal(mediaType, i=0) {
} else { document.querySelectorAll('.fr-view')[0].innerHTML = "" }
document.getElementById('wyMedia').innerHTML = mediaType;
document.getElementById('wyI').innerHTML = i;
var varElements = document.querySelectorAll("*");
for(let varElement of varElements) {
if(varElement.style['z-index'] == 9999) {
varElement.style.display = 'none';
}
}
document.querySelectorAll('.fr-toolbar')[0].style.backgroundColor = "lightgray";
var myModal = new bootstrap.Modal(document.getElementById('wysiwygModal'))
myModal.show()
}
......
......@@ -323,13 +323,6 @@ phon_d, phon_r_maj, phon_o_maj, phon_m"></textarea>
['insertLink', 'insertTable', 'emoticons', 'fontAwesome', 'specialCharacters', 'embedly', 'insertHR'],
['undo', 'redo', 'fullscreen', 'print', 'getPDF', 'spellChecker', 'selectAll', 'html', 'help']]
});
var varElements = document.querySelectorAll("*");
for(let varElement of varElements) {
if(varElement.style['z-index'] == 9999) {
varElement.style.display = 'none'
}
}
</script>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment