Skip to content

Commit

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

Remove temporary fixes
  • Loading branch information
ellatrix authored Mar 10, 2017
2 parents 75e7dea + b747f9c commit da25ee1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions tinymce-single/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
},
getSelectedBlocks: function() {
var editor = window.tinyMCE.activeEditor;

editor.selection.explicitRange = null;

var selection = window.getSelection();
var startNode = editor.selection.getStart();
var endNode = editor.selection.getEnd();
Expand Down
10 changes: 0 additions & 10 deletions tinymce-single/tinymce/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@
editor.on( 'preinit', function() {
var DOM = tinymce.DOM;

editor.on( 'mousedown click', function( event ) {
if ( event.target.getAttribute( 'contenteditable' ) === 'true' ) {
if ( event.target !== editor.selection.getNode() ) {
setTimeout( function() {
editor.selection.placeCaretAt( event.clientX, event.clientY );
}, 50 );
}
}
}, true );

editor.addButton( 'block', {
icon: 'gridicons-posts',
tooltip: 'Add Block',
Expand Down

0 comments on commit da25ee1

Please sign in to comment.