Simplenote-electron: Link detection like in iOS or Mac app

Created on 26 Aug 2016  路  14Comments  路  Source: Automattic/simplenote-electron

Hi,

This looks great!
I'd like to see link detection (like in the mac and ios apps) added. Is that something you'd want?

From a cursory look at the code for the NodeDetail component it seems that doing this would require replacing the textarea element with a <div contenteditable /> (maybe using https://github.com/facebook/draft-js) because text inside a textarea is not style-able in any way (as far as i know). Is this something you'd be ok with? If so I can take a stab at this

Nuno

Also Reported in:

  • #985556-zen
  • #1118368-zen
  • #1194082-zen
feature request

Most helpful comment

need this!

All 14 comments

Yes, please! I think I tried contenteditable for a while but it gave me problems which of course I don't recall. Go for it!

Cool, I'll open a PR when I have something!
In the meantime, would you accept a PR updating this to use babel 6? the version you're currently using doesn't work with node 6

Maybe, I think we'd need to test our desktop app packager to see if it works with node 6. cc @rodrigoi

you could keep using node 5, updating babel would simply allow me (and everyone else) to develop using node 6, but it'd still be totally compatible with node 5, unless I misunderstood what you wrote?

but honestly I can just use node 5 for this, it doesnt realy matter to me

@nfcampos it's probably best to work within node 5 for this PR. an update would be an entire PR by itself is my guess, and probably also something that wouldn't happen quickly enough to be in there before this work gets merged

ok, no problem

opened PR replacing textarea with draft.js editor :) the link detection, styling will follow

The web app neither shows urls as links.

this would be great on Linux too!

need this!

I would likely switch from the native Mac version to the web app or Electron flavor if they had if link detection.

Vote for it!

Thanks! I鈥檝e added this to our feature requests!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iamgabrielma picture iamgabrielma  路  3Comments

SaeedBaig picture SaeedBaig  路  4Comments

gubrist picture gubrist  路  4Comments

moniuch picture moniuch  路  3Comments

kaepuo picture kaepuo  路  5Comments