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

Navtej Singh Johar vs. Union Of India , (2018) 10 SCC 1(2018)

  Navtej Singh Johar v. Union of India – Case Review (2018) 10 SCC 1) 1. Introduction The case of Navtej Singh Johar v. Union of India (2018...