Skip to content

Commit

Permalink
Merge pull request #239 from WordPress/try/tinymce-single/contentedit…
Browse files Browse the repository at this point in the history
…able-false

Adjust blockquote markup based on shared post content
  • Loading branch information
ellatrix authored Mar 10, 2017
2 parents 33f99c6 + 11409ce commit 72e032b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions shared/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,8 @@ body {
margin: 2em;
}

/* hack to make editing work */
#editor blockquote cite {
min-width: 100px;
min-height: 27px;
display: inline-block;
#editor blockquote footer:before {
content: '— '
}

#editor:after {
Expand Down
2 changes: 1 addition & 1 deletion tinymce-single/blocks/elements/blockquote/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ window.wp.blocks.registerBlock( {
block.removeChild( footer );
} else {
block.insertAdjacentHTML( 'beforeend',
'<footer contenteditable="false">— <cite contenteditable="true"></cite></footer>' );
'<footer><br></footer>' );
}
},
isActive: function( block ) {
Expand Down

0 comments on commit 72e032b

Please sign in to comment.