Effortlessly Create And Edit Your Existing Text With Our New Online Text Editor Tool. User-friendly Interface, Easy To Use, Fast, And 100% Free Text Editing Tool. Try It Now!”
Online Text Editor
Online Text Editor
Text Goes Here
';
wys.focus(); // Ensure focus on editor before inserting
document.execCommand('insertHTML', false, imageHTML);
updateText();
};
reader.readAsDataURL(file);
}
}
function insertTable() {
var rows = prompt('Enter number of rows:');
var cols = prompt('Enter number of columns:');
if (rows && cols) {
var tableHTML = '
';
for (var i = 0; i < rows; i++) {
tableHTML += '
';
wys.focus(); // Ensure focus on editor before inserting
document.execCommand('insertHTML', false, tableHTML);
updateText();
}
}
function clearText() {
wys.innerHTML = 'Text Goes Here';
updateText();
}
function toggleFullScreen() {
if (!document.fullscreenElement) {
editorContainer.classList.add('fullscreen');
document.documentElement.requestFullscreen();
} else {
if (document.exitFullscreen) {
editorContainer.classList.remove('fullscreen');
document.exitFullscreen();
}
}
}
function downloadText() {
var textContent = wys.innerText; // Get the plain text content from your editor
var blob = new Blob([textContent], { type: 'text/plain' });
var url = URL.createObjectURL(blob);
var a = document.createElement('a');
a.href = url;
a.download = 'my_text_file.txt'; // Set the filename for the download
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}