diff --git a/shared/post-content.js b/shared/post-content.js new file mode 100644 index 00000000000000..3258a8cd108272 --- /dev/null +++ b/shared/post-content.js @@ -0,0 +1,33 @@ +window.content = [ + '', + '

1.0 Is The Loneliest Number

', + '', + + '', + '

I imagine prior to the launch of the iPod, or the iPhone, there were teams saying the same thing: the copy + paste guys are so close to being ready and we know Walt Mossberg is going to ding us for this so let\'s just not ship to the manufacturers in China for just a few more weeks… The Apple teams were probably embarrassed. But if you\'re not embarrassed when you ship your first version you waited too long.

', + '', + + '', + '
', + '', + + '', + '

A beautiful thing about Apple is how quickly they obsolete their own products. I imagine this also makes the discipline of getting things out there easier. Like I mentioned before, the longer it’s been since the last release the more pressure there is, but if you know that if your bit of code doesn’t make this version but there’s the +0.1 coming out in 6 weeks, then it’s not that bad. It’s like flights from San Francisco to LA, if you miss one you know there’s another one an hour later so it’s not a big deal. Amazon has done a fantastic job of this with the Kindle as well, with a new model every year.

', + '', + + '', + '

Real artists ship.

', + '', + + '', + '
Beautiful landscape
', + '', + + '', + '

By shipping early and often you have the unique competitive advantage of hearing from real people what they think of your work, which in best case helps you anticipate market direction, and in worst case gives you a few people rooting for you that you can email when your team pivots to a new idea. Nothing can recreate the crucible of real usage.

', + '', + + '', + 'https://www.youtube.com/watch?v=Nl6U7UotA-M', + '' +].join( '' ); diff --git a/tinymce-per-block/index.html b/tinymce-per-block/index.html index e03a7eb4621498..e7be6846daa513 100644 --- a/tinymce-per-block/index.html +++ b/tinymce-per-block/index.html @@ -6,10 +6,6 @@
- - diff --git a/tinymce-per-block/src/blocks/quote-block/index.js b/tinymce-per-block/src/blocks/quote-block/index.js index f5887f1b86d25e..1bf3beb575d6c4 100644 --- a/tinymce-per-block/src/blocks/quote-block/index.js +++ b/tinymce-per-block/src/blocks/quote-block/index.js @@ -37,7 +37,7 @@ registerBlock( 'quote', { : div.firstChild.firstChild.outerHTML; const cite = div.firstChild.childNodes.length > 1 - ? div.firstChild.childNodes[ 1 ].innerHTML + ? div.firstChild.lastChild.textContent : ''; return { diff --git a/tinymce-per-block/src/index.js b/tinymce-per-block/src/index.js index 25e8f59b12c7ea..6792a368a8e388 100644 --- a/tinymce-per-block/src/index.js +++ b/tinymce-per-block/src/index.js @@ -7,6 +7,7 @@ import { createElement, Component, render } from 'wp-elements'; /** * Internal dependencies */ +import '../../shared/post-content'; import * as parsers from 'parsers'; import * as renderers from 'renderers'; import * as serializers from 'serializers';