I have an iFrame that is turned editable when the page loads, like this:
function iframeLoad() {
iframe.contentDocument.designMode = 'on';
}
The problem is, the background of the page is very dark, and the text inside of the iFrame is black, so the user has an extremely difficult time reading the text. Is there a way to change the text color inside the iFrame to white so the user can read it? I'm making a WYSIWYG editor, and it is all in pure JS with no separate frameworks.
HTML code:
<div class="frame-div">
<iframe frameborder="0" id="text-area-iframe"></iframe>
</div>
Also, eventually, I would like the user to have control over the text using an <input type="color">
element. If there is a way to have the default color to be white and then have a function or method to change the color thereafter, that would be amazing.
Thanks!