Giter VIP home page Giter VIP logo

smolijar / emily-editor Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 2.0 813 KB

React editor component for LMLs, like Markup or Asciidoc. The focus of the project is to provide fluent efficient interface for advanced users, who are familliar with using IDE or coding text editors.

License: BSD 2-Clause "Simplified" License

JavaScript 100.00%
editor lml lightweight-markup-language markdown asciidoc react component document livepreview synchronized-scrolling

emily-editor's People

Contributors

smolijar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emily-editor's Issues

Refactor JSX styles

JSX styles take up most of the space in render method, which is not cool.

  • Extract into seperate funsctions, preferably files.
  • Consider using CSS preprocessor if available in JSX. Lot of redundancy in selectors
  • Seperate component and global styles

Autosave key

Generate autosave localStorage key based on given key or initial content, to allow saving multiple instances.

Fix console errors

There are some complains about key props, invalid prop types, funny html.

Spellcheck

Browser spellchecking usually does not work in similar editors. Mostly because it is not a single textarea or set of them, but input elements are dynamically generated. Current code is not in any input most of the time.

Application solutions seems to be the only way. Would rather use an existing editor extension, than implement it myself. I could not get to work any of those I found for CM nor Ace.

Current implementation I did for CM sucks. Does not use context menu and does not fully integrate to cm

Name

Be a good boy and give it a cool name!

Markup editor is boring, too general and ambiguous. People might think it's for XML.

Make it unique and related do lighweight markup languages 😐

Emoji support

Add short text emoji support :cat: 🐱 ala GitHub, Slack, ...

It's ugly

  • leave dark theme, it might work on desktop but on web it looks like 12yo learned css; all almost all form inputs and textareas are actually white
  • stay pure, minimal, simple, spacious, clean
  • inspire thyself from existing projects, that look good SimpleMDE, Typora, Google Docs (outline)

Did you lot find anything visually impressive ✨ from similliar editors?

Comment your suggestions! :octocat:

Cmd+C (copy) in preview panel does not work

When I select some text in the preview panel and hit Cmd+C to copy the selection, it does not copy it to the clipboard. However, when I open a context menu (right click) and click on “Copy” here, it does copy the selection to the clipboard. How’s that even possible…? 🙀

Browser: Firefox 55.0.3 on macOS

Links inside preview are not “clickable”

Links are rendered correctly as <a> tag, but its default action for left left click is blocked. User can open the link from browser’s context menu, but not by clicking or tapping on it.

Return scrollbars

It feels really weird to have a scrollable area without scrollbars. Even when you don’t use scrollbars for actual scrolling, they are useful as an indicator where you are in the document (position of the scrollbar) and how it is long (height of the scrollbar).

Basic autocomplete

Does not need to have all features. Implement e.g. hrefs for headings, prepare an interface for extending.

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.