/editoreable

Text editor built from bare metal bones with clojurescript

Primary LanguageClojure

Web Text Editor jenkins-build-status

A basic text editor for the web, built with Clojurescript.

Live demo at editoreable.erkanp.dev

Motivation

An attempt to build a text editor from bare divs for fun and learning!

Usage

In your shadow-cljs.edn

:dependencies [
                ...
                [editoreable "0.1.0-SNAPSHOT"]
                ]
(ns rock-and-roll-ns.main
  (:require [reagent.dom :as rd]
            [editoreable.core :refer [editor]]))

(defn render
  []
  (rd/render
    [:div {:style {:display         "flex"
                   :flex-direction  "column"
                   :align-items     "center"
                   :justify-content "center"}}
     [editor {:on-text-change (fn [txt] (println txt))}]]))

(defn init! []
  (render))

Demo

Q^A

Does it work?

Kinda.

On mobile?

Not yet!

IE?

NO!

Should you use it?

For your own safety, probably not.