Skip to content

Commit

Permalink
Change modal HTML editor icon
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Mar 12, 2023
1 parent 43f44f1 commit 1e71959
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom-html-block-extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Extend custom HTML blocks to evolve into an advanced code editor.
* Requires at least: 5.9
* Requires PHP: 7.3
* Version: 3.2.0
* Version: 3.2.1
* Author: Aki Hamano
* Author URI: https://github.com/t-hamano
* License: GPL2 or later
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: gutenberg, block, html, highlighting, emmet
Donate link: https://www.paypal.me/thamanoJP
Requires at least: 5.9
Tested up to: 6.2
Stable tag: 3.2.0
Stable tag: 3.2.1
Requires PHP: 7.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -69,6 +69,9 @@ Source: https://www.marksimonson.com/fonts/view/anonymous-pro

== Changelog ==

= 3.2.1 =
* Enhancement: Change modal HTML editor icon

= 3.2.0 =
* Feature: Add modal HTML editor
* Enhancement: Don't display toolbar buttons when preview mode
Expand Down
4 changes: 2 additions & 2 deletions src/block-editor/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
Modal,
Notice,
} from '@wordpress/components';
import { edit, arrowRight, replace } from '@wordpress/icons';
import { fullscreen, arrowRight, replace } from '@wordpress/icons';

const MIN_HEIGHT = 100;
const MAX_HEIGHT = 1000;
Expand Down Expand Up @@ -155,7 +155,7 @@ export default function HTMLEdit( { attributes, isSelected, setAttributes, toggl
{ ! isPreview && (
<ToolbarGroup>
<ToolbarButton
icon={ edit }
icon={ fullscreen }
label={ __( 'Open HTML Editor' ) }
onClick={ () => setIsModalEditorOpen( true ) }
/>
Expand Down

0 comments on commit 1e71959

Please sign in to comment.