mduvall / grande.js

It's a Medium at Starbucks. Pinky ring out.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace execCommand defaults with semantic tags

mduvall opened this issue · comments

Currently execCommand with bold and italic produce the <b> and <i> tags respectively. There should be an override to the document.execCommand to support the additional args and fall back to the standard if necessary, Medium looks like they implement a function queryCommandValue in the main-posters.bundle.js that provides some of this additional functionality.