Skip to content

Add HTML block with preview. - #1391

Merged
mtias merged 7 commits into
masterfrom
add/html-block
Jun 23, 2017
Merged

mtias merged 7 commits into
masterfrom
add/html-block

Conversation

@mtias

@mtias mtias commented Jun 23, 2017 •

Copy link
Copy Markdown
Member

image

Closes #1386.

@mtias mtias added [Feature] Blocks Overall functionality of blocks [Type] Task Issues or PRs that have been broken down into an individual action to take labels Jun 23, 2017
<div>
{ focus &&
<BlockControls key="controls">
<ul className="components-toolbar">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use the regular Toolbar component for this? I guess we just need to make the icon optional and drop the fixed width?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It forces icon at the moment. And we'll probably just create a segmented-control out of this in any case.

@youknowriad youknowriad Jun 23, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as part of #1256 I updated the Toolbar component to allow this. Edit: I updated the styling only. but seems easy to drop the icon requirement

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be done separately of course

@jasmussen

Copy link
Copy Markdown
Contributor

Designed new icon for the block here: WordPress/dashicons#207

@youknowriad youknowriad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great, feel free to merge when the tests are fixed

@ellatrix

Copy link
Copy Markdown
Member

Awesome!

@mtias
mtias merged commit e8a09d7 into master Jun 23, 2017
@ellatrix
ellatrix deleted the add/html-block branch July 2, 2017 08:34
@afercia afercia added the [Feature] Widgets Screen The block-based screen that replaced widgets.php. label Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Blocks Overall functionality of blocks [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Task Issues or PRs that have been broken down into an individual action to take

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Sponsor
SponsoredKunjungi sekarang
Promo