Git Product home page Git Product logo

task-5-text-editor's Introduction

Simple Text Editor Example

This is a simple example of a text editor built using JavaScript's execCommand for basic text formatting and manipulation.

Features

  • Text Formatting: Includes options to make text bold, italic, underline, remove formatting, and more.
  • Heading Styles: Apply H1, H2, and H3 heading styles to the selected text.
  • Text Alignment: Align selected text to the left, center, or right.
  • Text Animation: Demonstrates a simple text animation effect.
  • Copy Text: Allows copying selected text to the clipboard

Demo

Visit the live demo to see the text editor in action.

How It Works

The editor uses the execCommand method to apply text formatting and other commands to the selected text within the contenteditable element. JavaScript is used to manage button clicks and execute the appropriate execCommand based on the user's actions.

Please note that execCommand is now considered deprecated and has limitations in modern browsers. It is recommended to explore alternative methods and libraries for rich text editing.

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

task-5-text-editor's People

Contributors

ayhamalahmad avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

leondoff

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.