Giter Site home page Giter Site logo

elm-rich-textarea's Introduction

My textarea is Rich !

This project is in early inception stage. Use at your own risk.

Build Status

Live Demo

Features

  • textarea-like editing experience...
    • edition
    • key/mouse nav and selection
    • scrolling
  • but with styled text !
    • ability to plug-in custom "highlighting"
    • with debouncing (do not parse at every keystroke)
    • in Elm, or in JS through ports
  • and prediction/completion
    • with pluggable prediction engine
    • in Elm, or in JS through ports
  • 100% pure Elm (0.19)

elm-rich-textarea's People

Contributors

vankeisb avatar frawa avatar

Stargazers

#A avatar Alexey Yurchenko avatar Itamar Shapira Bar-Lev avatar  avatar Laurence Roberts avatar Clem avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

frawa

elm-rich-textarea's Issues

completion/prediction

  • Handle key strokes (CTRL-SPACE) and focus stuff
  • Find position of the completion box
  • Pop the completion panel somewhere
    • position and LaF to be determined. Look Slack, IDEs, and other similar stuff for inspiration...
  • Design a prediction API that's easy to use (pass text+caret pos, and let the user render the prediction box content herself)

hide the textarea

It should (of course) not be visible to the user...

Maybe we want a way to make it visible for debugging ?

scrollable editor

The editor should scroll to the caret pos when navigating with keys.

This requires to make the editor scrollable first !

style expansion issue

styles are always expanded, which can lead to ugly styling when typing fast / highlight delays :

highlight expand issue

we'd like the styles to be "reset" in that case.

asynchronous styling

Styling should be available as a Cmd and not directly as a function, in order to support external, async parsing (HTTP, ports)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.