writer.js is a simple text editor in the web

Overview

writer.js

writer.js is a simple text editor in the web

About writer.js:

This is a simple and lightweight editor for the web

demo: https://alirezakefayati.github.io/writer.js/

💻 How to use writer.js:

  1. download writer.js from github
  2. Add script and style writer.js in head tag:
<link rel="stylesheet" href="writer.js/css/style.css">
<script src="writer.js/js/script.js"></script>
  1. Create a div tag with the desired id and Create an iframe tag with the desired id and writer-js class inside it.
<div id="textEditor">
    <iframe id="writer-js" class="writer-js"></iframe>
</div>
  1. Open a script tag under the body and We create a variable with the desired name and create a new object from the writer class. This class takes five inputs, the first three of which are mandatory.
let writerJs = new writer(lang, iframe Id, box Id, default value, style)

This function takes multiple inputs. The first input is the language of your editor. We support English and Farsi languages. The second and third inputs is your iframe ID and your div ID. The fourth input, which is optional, specifies the default text inside the editor. The fifth value is the styles you want for the text inside the editor. for example:

createEditor('en', 'writer-js', 'editor-box', 'hello world', 'a{color: blue;}')

📃 How to get the content?

Run writerJs.setOutput() method. After that, the content is available in a textarea with the name and ID output + iframe id. or run writerJs.getOutput() method. this method return text in editor.

You might also like...

Obsidian plugin: Type text shortcuts that expand into javascript generated text.

Obsidian plugin: Type text shortcuts that expand into javascript generated text.

Obsidian Plugin - Text Expander JS (open beta) This Obsidian plugin allows the user to type text shortcuts that are replaced by (or "expanded into") j

Dec 27, 2022

A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

cryptoWriter.js A lightweight javascript library which creates brilliant text animation by rendering strings of random characters before the actual te

Sep 13, 2022

Easiest 1-click way to install and use Stable Diffusion on your own computer. Provides a browser UI for generating images from text prompts and images. Just enter your text prompt, and see the generated image.

Easiest 1-click way to install and use Stable Diffusion on your own computer. Provides a browser UI for generating images from text prompts and images. Just enter your text prompt, and see the generated image.

Stable Diffusion UI Easiest way to install and use Stable Diffusion on your own computer. No dependencies or technical knowledge required. 1-click ins

Dec 30, 2022

Simple format that serves it's one and only purpose and that's creating simple task list everywhere where you can write plain text

Simple format that serves it's one and only purpose and that's creating simple task list everywhere where you can write plain text

SWTF (Simple Worklog Task Format) Simple format that serves it's one and only purpose and that's creating simple task list everywhere where you can wr

Apr 4, 2022

A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snippets.

A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snippets.

Warm Up 🔥 👨‍💻 A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snipp

Dec 12, 2022

IBLIZE - Simple Javascript Code Editor Library

IBLIZE - Simple Javascript Code Editor Library

IBLIZE - Simple Javascript Code Editor Library View Demo » Report Bug - Request Feature Getting Started 1. Include Iblize on your project you can dire

Dec 30, 2022

A simple editor allows you to easily add and customize all the sections you need for your profile's readme.

A simple editor allows you to easily add and customize all the sections you need for your profile's readme.

Create your Profile README using the best Templates tomper-readmify.herokuapp.com This is the frontend + backend of TomperReadmify build with MERN sta

Jan 2, 2023

Web based all in one gradient editor for your next projects.

Web based all in one gradient editor for your next projects.

Find the perfect gradient for your next projects Introducing Gradientify Gradientify is a web-based all-in-one gradient editor that gives you access t

Dec 25, 2022

Motionity is a free and open source animation editor in the web

Motionity is a free and open source animation editor in the web

Motionity The web-based motion graphics editor for everyone 📽 Motionity is a free and open source animation editor in the web. It's a mix of After Ef

Jan 3, 2023
Owner
alireza kefayati
Full Stack Developer. My expertise: php, laravel, js,vuejs, python, ui, ux
alireza kefayati
toXML - Pure JavaScript XML Writer

toXML - Pure JavaScript XML Writer Live Demo: https://kawanet.github.io/from-xml/ FEATURES Simple: single writer function toXML() which returns XML st

Yusuke Kawasaki 5 Apr 1, 2022
Powerful rich text editor using Vue.js and Quill. About @quilljs editor component for @vuejs

quill-vuejs Quill editor component for Vue. 基于 Quill、适用于 Vue 的富文本编辑器,支持服务端渲染和单页应用。 Preview Example CDN example page Component example page Install NPM

Chi Zhang 10 Aug 10, 2022
A simple web text editor which can export HTML

Rich Text Editor A simple web text editor which can export HTML Explore the docs » View Demo · Report Bug · Request Feature Table of Contents About Th

JuSoft 1 Apr 8, 2022
Lexical is an extensible JavaScript web text-editor framework with an emphasis on reliability, accessibility and performance

Lexical is an extensible JavaScript web text-editor framework with an emphasis on reliability, accessibility and performance. Lexical aims to provide a best-in-class developer experience, so you can easily prototype and build features with confidence.

Meta 12.7k Dec 30, 2022
🚀 The web-based text editor for everyone built with Electron & React.

?? The web-based text editor for everyone built with Electron & React. Next release | Current release | Documentation (soon) ⬇️ Download: Windows (x64

Pablo Hdez 5 Sep 16, 2022
Replaces the default Strapi WYSIWYG editor with a customized build of CKEditor 5 html editor packed with useful plugins.

CKEditor 5 for Strapi Replaces the default Strapi WYSIWYG editor with a customized build of CKEditor 5 packed with useful plugins. ?? Get Started Feat

null 39 Jan 2, 2023
Triumph Tech’s Magnus Editor is a full-featured remote editor for Rock RMS.

Magnus Visual Studio Code Editor for Rock RMS Triumph Tech’s Magnus Editor is a full-featured remote editor for Rock RMS. Rock RMS is an open source R

Triumph Tech 8 Nov 23, 2022
A Node.js based text editor

akf-code A editor to write code or etc in your terminal! Usage/install npm i akf-code -g && acode <filename> or npx akf-code <filename> Keys Ctrl+C: T

Akif Yüce 4 May 22, 2022
Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.

twitter-text This repository is a collection of libraries and conformance tests to standardize parsing of Tweet text. It synchronizes development, tes

Twitter 2.9k Jan 8, 2023
Obsidian text generator Plugin Text generator using GPT-3 (OpenAI)

is a handy plugin for Obsidian that helps you generate text content using the powerful language model GP

null 356 Dec 29, 2022