WordPress / press-this

Press This is a little tool that lets you grab bits of the web and create new posts with ease. It will even allow you to choose from images or videos included on the page and use them in your post. Use Press This as a quick and lightweight way to highlight another page on the web.
48 stars 22 forks source link

Merge the functionality into the "Insert/edit link" editor and name it "insert/edit linked content" editor #19

Open jpluimers opened 6 years ago

jpluimers commented 6 years ago

I gave the Press-This functionality another thought and came to this idea:

integrate the title/content retrieval logic into the "Insert/edit link" editor and name it "insert/edit linked content" editorf?

My idea is that there you can paste a URL, then based on it insert this in your post:

For me it would boost my WordPress productivity a lot as many of my posts summarises other on-line content posts and relates them together.

kraftbj commented 6 years ago

That would be really slick. Great idea.

dshanske commented 6 years ago

Should this be in Core as opposed to Press This? I know I suggested that the parsing code be split out into a Core library and used to enhance things like embeds.

jpluimers commented 6 years ago

@dshanske my first thought would be "of course".

But then I realised I know nothing about release and integration mechanisms behind WordPress.

If core gets released often, then I'd say "yes, core!", so others like "Insert/edit link" editor can benefit from it.

If core gets hardly released, but Press-This more often, then I'd say "Press-This", then decide what next steps to take.

Probably the answer is somewhere in the middle, so this might be a much more viable set of steps:

  1. building it in "Press-This",
  2. step by step refactor it so it can called as an API
  3. copy the API to core, then wait for a release
  4. adopt "Press-This" to use the API in core
  5. drop the API from "Press-This"

Parallel to steps 4. and further, the "Insert/edit link" editor can be modified to call the API.

kraftbj commented 6 years ago

I think this can be developed and tried out in PT and ported over to Core if it works well, much like @jpluimers mentions.

At the same time, PT can work on a Gutenberg block for it so the eventual new editor would benefit.

dshanske commented 6 years ago

kraftbj, would you want me to do a PR for Parse This? My fork? It is based on the Press This code.

kraftbj commented 6 years ago

@dshanske If you're game, I'm cool with having it in Press This proper as to make this plugin a solid place for all types of "Pressing".

jpluimers commented 6 years ago

@kraftbj what's a "Gutenberg block" apart from the technology Gutenberg used to press books?

dshanske commented 6 years ago

@jpluimers Gutenberg is the new editor for WordPress, probably going into 5.0. It is block based. So content will be divided into block elements. You can install a demo as a plugin on your site if you want to try it.