Skip to main content
No need to call slice. ForEach can be called directly.
Source Link
user4639281
user4639281

Try this in the IE10 console:

Array.prototype.slice
  forEach.call(
  document.querySelectorAll('.wmd-button-row li')),
  .forEach(function(li) {
    li.style.float = 'left';
  } 
);

Essentially it is selecting the list of controls and giving each one a "float: left".

The result looks like this: Editor in IE10

Edit Note this is merely a workaround.

Try this in the IE10 console:

Array.prototype.slice
  .call(document.querySelectorAll('.wmd-button-row li'))
  .forEach(function(li) {
    li.style.float = 'left';
  });

Essentially it is selecting the list of controls and giving each one a "float: left".

The result looks like this: Editor in IE10

Edit Note this is merely a workaround.

Try this in the IE10 console:

Array.prototype.forEach.call(
  document.querySelectorAll('.wmd-button-row li'),
  function(li) {
    li.style.float = 'left';
  } 
);

Essentially it is selecting the list of controls and giving each one a "float: left".

The result looks like this: Editor in IE10

Edit Note this is merely a workaround.

Source Link
Decoy
  • 550
  • 2
  • 1

Try this in the IE10 console:

Array.prototype.slice
  .call(document.querySelectorAll('.wmd-button-row li'))
  .forEach(function(li) {
    li.style.float = 'left';
  });

Essentially it is selecting the list of controls and giving each one a "float: left".

The result looks like this: Editor in IE10

Edit Note this is merely a workaround.