← All Tools

Online Text Editor

A lightweight rich-text editor with formatting options and download support.

Editor

Start typing your document here…

0 words 0 chars 0 lines

Actions

Find & Replace

' + editorEl.innerHTML + ''; downloadFile(new Blob([html], {type:'text/html'}), 'document.html'); } function copyAll() { navigator.clipboard.writeText(editorEl.innerText || '').then(() => { showAlert(alertBox, 'success', 'Copied!'); setTimeout(() => clearAlert(alertBox), 2000); }); } function copyHtml() { navigator.clipboard.writeText(editorEl.innerHTML || '').then(() => { showAlert(alertBox, 'success', 'HTML copied!'); setTimeout(() => clearAlert(alertBox), 2000); }); } function doReplace() { const find = document.getElementById('findText').value; const replace = document.getElementById('replaceText').value; if (!find) return; const text = editorEl.innerHTML; const escaped = find.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); const count = (text.match(new RegExp(escaped, 'g')) || []).length; editorEl.innerHTML = text.split(find).join(replace); showAlert(alertBox, 'success', count + ' replacement(s) made.'); setTimeout(() => clearAlert(alertBox), 2500); } updateStats();