Can I change the HTML when writing an email in Gmail? [closed]

0

I need something very simple, I want to do a <strike> (strikethrough) in the text of an email, eg: strikethrough .

I found the library KartikTalwar / gmail.js: Gmail JavaScript API , but it demands a tremendous turnaround and the creation of a Chrome Extension to achieve something similar.

Sometimes I use the JS snippets in the Developer Tools to manipulate the DOM of the pages , but I doubt it is the way:

Any alternatives?

Cross-post in SOpt Modify or HTML at the time of scheduling an email No Gmail? Original text and manual translation.

    
asked by brasofilo 02.02.2016 в 13:24
source

2 answers

2

Personally, I think the solution you propose is too complicated for what you want to achieve. Here I will leave two simpler alternatives that even people without technical knowledge can use:

Option 1: Use plug-ins / extensions in the browser

In the different browsers you can find plugins and extensions to add functionality to the text editor of GMail mail. As in the question you talk about Chrome, I'll give some examples for that browser.

In the particular case of crossing out a sentence ( strikethrough ), you could use the extension Strikethrough , which does just that: add a button to cross out text in the editor.

But you can also find others like TeX for Gmail , < a href="https://chrome.google.com/webstore/detail/fix-compose-for-gmail%C2%AE-to/hpoidnelefpoofhdioielagfklahfcjg?hl=en"> Fix Compose for Gmail or Classic Gmail Compose , to mention a few in Chrome.

Option 2: Copy-paste from a text editor

Why complicate life with editing HTML or installing plugins / extensions? Here I leave a supersimple method that works even without having any knowledge of HTML and without knowing how the extensions work.

A method that even my grandmother would know how to use:

  • Write the email in your favorite text editor (Microsoft Word, StarOffice, WordPad, Google Docs ... it does not matter), even with options not available in GMail: strikethrough, superscripts, subscripts, horizontal lines, etc. .

  • Copy the text to the GMail email editor

  • Tachán! It's done

  • answered by 02.02.2016 в 15:38
    0

    You can directly use the DOM manipulation in Developer Tools offered by your browser. It's not something straightforward or elegant like creating an extra button for formatting, but for someone who programs HTML it's something very simple :

    • Click the right button just above the text you want to change and choose Inspect Element (Inspect Element) .

    • Now, find the correct code block in the Dev Tools and click again with the right button choosing Edit as HTML (Edit as HTML) :

    • Once there, change the code for <strike>TU TEXTO</strike> and ...
      We have it!

    PS: also serves for other HTML tags, such as <hr>

        
    answered by 02.02.2016 в 13:39