Simple Text Editor with Formatting Options

Simple Text Editor with Formatting Options

The above project is a simple text editor built using HTML, CSS, and JavaScript. The main objective of the project is to provide a basic text editor interface with a few common formatting options

The problem Simple Text Editor with Formatting Options solves

This code implements a basic text editor web page with a toolbar of buttons that perform various text formatting actions. When a button is clicked, a corresponding JavaScript function is called that applies the specified formatting action to the text within the textarea element on the page. The formatting actions available include setting the font weight, text alignment, text transform, and font style of the text. Additionally, there is a button to clear the textarea. This text editor can be useful for users who need to perform basic text formatting tasks without using a dedicated software or application.

Challenges I ran into

Handling text formatting: Implementing text formatting such as bold, italic, underline, and font size can be challenging. One needs to make sure that the formatting is applied correctly and consistently across all the text editor functionalities.

Handling text alignment: Implementing text alignment functionalities such as left, center, and right alignment can be tricky, especially when dealing with different screen sizes and resolutions.

Technologies used

Discussion