A basic text editor for the web, built with Clojurescript.
Live demo at editoreable.erkanp.dev
An attempt to build a text editor from bare divs for fun and learning!
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))
Kinda.
Not yet!
NO!
For your own safety, probably not.