Answer the question
In order to leave comments, you need to log in
Can TinyMCE remove caption="false" from images?
When loading a picture, the TinyMCE editor adds a property: caption="false" - which, as it were, prohibits the display of a caption for the picture.
<img src="../source/statii/1557572548892.jpg" class="img-fluid" width="1012" height="505" caption="false" />
Answer the question
In order to leave comments, you need to log in
You can remove an attribute.
allImages = document.querySelectorAll('img.img-fluid')
for(let i=0; i<allImages.length; i++)
allImages[i].removeAttribute('caption')
Can someone tell me how to remove it from the entire site using JS when shown?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question