curvenote / editor Goto Github PK
View Code? Open in Web Editor NEWAn interactive scientific editor built with ProseMirror, React and Redux - by Curvenote.
Home Page: https://curvenote.com
License: MIT License
An interactive scientific editor built with ProseMirror, React and Redux - by Curvenote.
Home Page: https://curvenote.com
License: MIT License
I have no idea how to do this in CSS.
Asked a question here: https://discuss.prosemirror.net/t/text-wrapping-of-punctuation-around-custom-node-views/3749
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.
We could also add a few other options here, but basic on/off line numbering (default off) would be nice.
The input rule should be decreased in sensitivity.
https://github.com/curvenote/editor/blob/main/src/prosemirror/inputrules/rules.ts#L105
This can be overridden by the menu and explicitly choosing to insert math. Or you can have two dollars in a row and then write inside.
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?
Here is an example:
When you add a citation via the /Reference
command, this gets added in enclosing parentheses ()
however when you use the shortcut [[
the citation is not added with parentheses.
Attempting to learn this and open a parentheses first typing ([[
then the shortcut does not activate.
Should the [[
shortcut just insert with parentheses as does the /Reference
command?
Would be nice to have simple highlight/color for headings! 🚀
Worth considering as it's a common keybinding for navigating dropdowns in editors like vscode or vim etc.
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.
We should escape the |
in text, including in code.
Might look to latex export on how to do this?
Right now arrowing from content into code skips the code mirror block completely. The arrow keys should have expected behaviour. (up down as well, but that is harder)
and vice versa
Currently there is only one image that we can upload at a time.
Right now in read only you can still edit the width and the selection of cells is unnexpected
<a>
should not replace to a inlineslider.
This trips a bunch of people up.
I.e. look in the preceding text for a (b)
and stop if that is matched.
Right now the iframe, image and link each have their own toolbar:
The link is the one that is pretty solid:
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.
The equation block can delete content paragraph, this should never happen.
Currently, "Merge Cell" and "Split Cells" buttons are enabled by default. It makes more sense to toggle their funcionality based on the selection state:
colSpan
or mergeSpan
value is greater than 1.Slack discussion context: https://curvenote.slack.com/archives/C01CFLELFCM/p1632331767020400
font-variant: small-caps;
As a mark!
For example if you start with a comment %
then the whole equation gets wiped out. :(
This repo looks fantastic:
https://github.com/benrbray/prosemirror-math
Related: schema needs to parse begin{
statements.
For latex, it would be awesome if we could support multi-row spans.
Some possible follow up here:
https://tex.stackexchange.com/questions/78169/table-rowspan-and-colspan
It does look like there is the multirow
package, I am not sure if we can support these generally?
A of <time>,
--> As of ,
.
This is also the case for displayed variables. This makes copying to text fields difficult.
User feedback:
"the formatting of lists from a text block with line breaks failed me twice, having to delete and jump lines again."
USer feedback: "The text editor is a bit green, it does not detect links automatically,...."
Current state: http://g.recordit.co/Hsg821FKF2.gif
Either via a menu click or shortcut
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
and a new bullet is created instead
Originally reported by @prisae
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.
Typed in “arXiv.org” and Curvenote created an automatic link. When you try to go to the link it proceeds to “https://curvenote.com/@curvenote/growth/arxiv-submission-checklist/arXiv.org” which doesn’t exist. I can of course edit the link but I would rather it be correct or not automatic given that automation leads me to believe that it is already working and I shouldn’t have to check/fix it.
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.
For code_block node.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.