Quill is a free and open-source text editor that falls under the category of WYSIWYG editors and is mainly built for the modern web that we use today. It is a highly customizable text editor and has many expressive API. Quill is very easy to use and provides a good interface that is even understandable to those that have worked on markup only. In this tutorial, we will take multiple examples to explain how you can build a text editor using Quill.js. While there are dozens of rich text editors that belong to the WYSIWYG text editors, the most widely ... Read More
It is a well-known fact that code is prone to errors, and sometimes even when we know that a particular workflow will work fine for some cases, there's a good chance that we forget about some other cases. In simple terms, it can be said that when we test a code manually, we might miss something. For example, suppose we have two functions, func1() and func2(), and we know that func1() works for the cases that we have defined in our test, but we found out that func2() doesn't work. Then we fix func2() but later forgot to check whether ... Read More
Auto-formatting is one of those features that are hard to implement but at the same time increases the userexperience a lot. There are different JavaScript libraries that one can use when they want to auto-format the input text content, but the most popular of them is Cleave.js. Cleave.js is a JavaScript library that is mainly used when we want to format the input text content and it works very smoothly. It is very lightweight and easy to get started with. In this tutorial, we will take a couple of examples to demonstrate how you can use Cleave.js to autoformat input ... Read More
AOS.js (Animation on Scroll) is an animation-providing JavaScript library that makes it easier to add tons of animations by simply changing the name of the class in the div tag in which you want to add an animation. While there are different animation JavaScript libraries out there, AOS.js is probably the simplest of them. In this tutorial, we will explore different types of animations that we can use in AOS.js with the help of different examples. The first category of animations that we will explore are the fading one's. Before we do that, we first need to make sure that ... Read More
To replace a character at a specified index with a new character Swift support the following methods − Using replaceSubrange() method. Using the append() method. Using replacingCharacters(in:with:). Using these methods you can replace any character from the given string with a new character. For Example Input: String = "Pink Bike" Index = 5 Character = "O" Output: "Pink Oike " Here, we replaced the character present on index 5 which is “B” with “O”. Method 1: Using the replaceSubrange() method To replace a character at a specified index in the given ... Read More
While working with strings sometimes we encounter some numeric strings whose leading numbers are zeros, e.g. 000003232, 00321, etc. To remove leading zeros from a numeric string − Using removeFirst() and hasPrefix() methods Using firstIndex() and dropFirst() methods Example Input: String = "000003231" Output: "3231 " Here, the input string contains 5 leading zeros so we remove these zeros from the input string so the resultant string is 3231. Method 1: Using removeFirst() and hasPrefix() methods So to remove leading ... Read More
There was a time when we had to manually write in limitless quantities of phone numbers, names, and other information to transfer contacts from one mobile platform to another. Thanks to cell phones, which do most of the job for us in a short time. Nowadays, iPhones and Androids are the two most dominant smartphones on the market. Some individuals wish to migrate from Android to iPhone devices or from iPhone to Android smartphones or maybe from an older iPhone to their newly bought one, so they need to move their contact list from one phone to another in a ... Read More
Do you sometimes feel that your cherished MacBook Air or Pro can perform better? Do you find that no matter how hard you try, you can't find a solution for your trouble? If you don't want potential buyers to see any of the information stored on your MacBook before you sell it, you must clear the data before selling it. If you are experiencing issues with your MacBook or another Mac, you can follow the methods outlined in our extensive reset guide. You will find step-by-step instructions from the manufacturer that will walk you through resetting your MacBook (or iMac) ... Read More
In Swift, regex is known as a regular expression. It is used to create a pattern which helps in matching or extracting some specific port of the given string. We can create a regex instance with the help of a regular expression in regex literal or string. In this article, we are going to use regex to print the first letter of each word. Example Input: String = "Ram got first place" Output: "Rgfp " Here, the output string contains the first letters of each word present in the given string. In the following examples we are going to ... Read More
In Swift, a string is a sequence of characters that represent in between double quotes, for example: ”Learn Swift”, “tutorialspoint”, etc. But when you print the string double quotes were removed by the compiler and you will get Learn Swift, tutorialspoint in the output. So if you want to print double quotes in the output, then you have to place the backslash character or escape character(\) before the double quotes you want to print inside the given string. It tells the compiler that the character should be treated as a literal character, it is not part of string syntax. ... Read More
 
 Data Structure
 Data Structure Networking
 Networking RDBMS
 RDBMS Operating System
 Operating System Java
 Java MS Excel
 MS Excel iOS
 iOS HTML
 HTML CSS
 CSS Android
 Android Python
 Python C Programming
 C Programming C++
 C++ C#
 C# MongoDB
 MongoDB MySQL
 MySQL Javascript
 Javascript PHP
 PHP 
		 
		