Is it possible to modify HTML when writing an email in Gmail?

3

The intention is very simple, I want to make a <strike> (crossed out) in the email text, eg: struck .

I found the library KartikTalwar / gmail.js: Gmail JavaScript API , but it requires tremendous laps and the creation of a Chrome extension to do something similar.

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

Any alternative?

    
asked by anonymous 02.02.2016 / 13:09

1 answer

4

You can directly use the manipulation of the Developer Tools DOM that the browser offers. It's not straightforward or cute how to create an extra button for formatting, but for an HTML programmer it's very simple :

Right-click just above the text you want to modify and ask Inspect Element . Now, locate the correct code block in Dev Tools and right-click the Edit as HTML (Edit as HTML) / p>

OnceinsidetheHTMLedit,modifythecodefor<strike>SEUTEXTO</strike>and...
Thereyougo,Osvaldo!

PS: Also suitable for other HTML tags, such as <hr>

    
02.02.2016 / 13:09