Home Plan & Pricing Templates

Hotkeys #

TeXPage’s editor uses the open source CodeMirror 6, and users who are able to do so can program their own custom hotkeys via TamperMonkey.

** Setting custom hotkeys may affect the use of the editor, if you encounter problems, send an email to support@texpage.com and we will help you to fix it. **

Demo Code #

// ==UserScript==
// @name         TeXPage Editor Custom Keybindings
// @namespace    http://tampermonkey.net/
// @match        https://www.texpage.com/project/*
// @match        https://texpage.com/project/*
// @grant        none
// ==/UserScript==

(function() {
  'use strict';
  const getEditorTimer = setInterval(() => {
    // TeXPage editor instance
    const editor = window._texpage_editor
    if (editor === undefined) return;

    // Your code here...

    console.log("TeXPage Editor Custom Keybindings Started!")
  }, 200)