Skip to content

Instantly share code, notes, and snippets.

@chrisguest75
Created January 19, 2022 20:20
Show Gist options
  • Select an option

  • Save chrisguest75/c671882120b6d86cb1cfb7cf69a9d071 to your computer and use it in GitHub Desktop.

Select an option

Save chrisguest75/c671882120b6d86cb1cfb7cf69a9d071 to your computer and use it in GitHub Desktop.
Bookmarklet to increase fontsize on Trint Editor

Replace FontSize on Trint Editor

This is an unsupported bookmarklet hack to change the fontsize of the editor.

Bookmarklets Explained here

Open bookmarks in Chrome Browser. Open bookmark manager and add the following snippet inside the block as the URL.

javascript: (() => {
    const allCSS = [...document.styleSheets];
    var results = allCSS.filter(function(entry) { return entry.href?.match("css/editorPage") != null; });
    const allRules = [...results[0].cssRules];
    var rule = allRules.filter(function(entry) { return entry.selectorText === ".tr-paragraph"; });
    rule[0].style.fontSize='30px';
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment