forked from GithubMirrors/cardconjurer
Add italic toggle button
This commit is contained in:
@@ -123,3 +123,12 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
document.body.dispatchEvent(new Event('doCreate'));
|
||||
})
|
||||
|
||||
document.onkeyup = function(e) {
|
||||
if (document.activeElement === document.getElementById('text-editor')) {
|
||||
if (e.ctrlKey && e.which == 73) {
|
||||
toggleTextTag('i');
|
||||
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user