We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fdb5cf8 + d5350b4 commit 8848ab3Copy full SHA for 8848ab3
tinymce-single/blocks/elements/headings/register.js
@@ -33,8 +33,9 @@
33
type: 'text',
34
icon: 'gridicons-heading',
35
controls: getControls(),
36
- insert: function() {
37
-
+ insert: function( block, editor ) {
+ // Maybe detect best heading based on document outline.
38
+ editor.formatter.apply( 'h1', block );
39
}
40
} );
41
} )( window.wp );
tinymce-single/blocks/elements/paragraph/register.js
@@ -34,6 +34,6 @@ window.wp.blocks.registerBlock( {
'text-align-right'
],
insert: function( block, editor ) {
- editor.formatter.apply( 'paragraph', block );
+ editor.formatter.apply( 'p', block );
0 commit comments