All Rounder Tools Blogger-Best blog for blogger: Text Editor Tool with colorful styling and all its features use any free library...

Wednesday, September 25, 2024

Text Editor Tool with colorful styling and all its features use any free library...

 

Text Editor Tool
body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 20px; } .editor-container { max-width: 800px; margin: auto; background: #fff; border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); overflow: hidden; } .toolbar { background-color: #007bff; padding: 10px; display: flex; justify-content: space-around; } .toolbar button { background: none; border: none; color: white; font-size: 16px; cursor: pointer; padding: 10px; transition: background-color 0.3s; } .toolbar button:hover { background-color: rgba(255, 255, 255, 0.2); } .editor { padding: 20px; min-height: 300px; outline: none; font-size: 16px; color: #333; } .editor:focus { border: 2px solid #007bff; } function formatText(command) { document.execCommand(command, false, null); } function changeColor() { const color = prompt("Enter a color or hex code (e.g. red, #ff0000):"); if (color) { document.execCommand('foreColor', false, color); } } function clearEditor() { document.getElementById('editor').innerHTML = ''; }

No comments:

Post a Comment

Supreme Court Reduces Mandatory Three-Year Legal Practice to One Year for Entry-Level Judicial Examination

The Supreme Court of India has recently brought a significant change in the eligibility requirements for entry-level judicial service examin...