Giter Club home page Giter Club logo

editor's Issues

Strikethrough should be less sensitive

These are often used for "approximately" in numbers, and only very rarely are people looking to actually strike text.

From ~20 to ~30. -- here in github markdown, that isn't even recognized. Perhaps no leading space on the second one could be a decent trigger as well as a length cutoff as a fallback.

Escape inside of Codeblocks

With the new code blocks - to exit you it escape. With other features like a callout panel you hit escape to select the feature. Enter twice at the end will exit you from the call out panel. I don’t mind either but need to be consistent. Is there a way to select an entire code block (blue outline) similar to the call out panel or image then drag the block to where you want it within the content block?

Bring back labels

We had to remove labels for some simplicity, I think it is worth bringing these back. It allows us to have a fall back when the ID doesn't work. This could be the case where you are rearranging the content manually - and make sure to update the label, but we won't ever expose the ID in a UI.

ff2ae69

Improve options panel.

Right now the iframe, image and link each have their own toolbar:

image

The link is the one that is pretty solid:

image

This is done through a Widget rather than as a NodeView. This means that there is only one of them and it doesn't have to be in the dom of the editor (which is more efficient). It is also not clear how to specify between toolbars that should be shown. For example, a link or inline equation (that might have an alt text?) would be difficult to show instead of a callout panel option. Only one of these should be seen at a time.

We should centralize the toolbar pieces into a toolbar view. This also has the added benefit of not requiring react in the editor dom almost at all? As well as the toolbar is not contained in the editor experience (which is auto scrolled, and means we need to pop it out for images). I also think that this will be easier to customize these toolbars outside of this package.

Table `Merge Cell` & `Split Cell` should only be enabled when their conditions are met

Currently, "Merge Cell" and "Split Cells" buttons are enabled by default. It makes more sense to toggle their funcionality based on the selection state:

  • for "Merge Cells", it should only be enabled when multiple cells are selected
  • for "Split Cells", it should only be enabled when either of the the cell colSpan or mergeSpan value is greater than 1.

Slack discussion context: https://curvenote.slack.com/archives/C01CFLELFCM/p1632331767020400

Better export of text:

A of <time>, --> As of , .

This is also the case for displayed variables. This makes copying to text fields difficult.

  • Dates
  • Variables
  • Citations

Nodes are deleted on enter

Peek 2021-07-19 20-48

When citations are created they are by default selected, they shouldn't be.

Hitting enter just removes it. Have to do undo to get it back
This also happens when editing in-line equations in lists, hence $....$ - doing some edits, hitting enter, and the entire equation is gone
and a new bullet is created instead

Originally reported by @prisae

Should some commands be deterministic?

For people who are typing fast, the fuzzy search may not catch up to them or change when they hit enter to select a command. This could be minimized for specific commands like /cite /eq and /ref which have analogues in latex land.

Double Click handler in Code

Double-clicking within a code block does not trigger a locked block to open into draft mode.

This should trigger the same function as in the dbl click in prosemirror.

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.