I am sending a file via mutt to an e-mail address. I would like to make certain text appear bold in the e-mail in Outlook. I was hoping it is possible through the base set of ruby commands.
I tried using \e commands, and that works well from a Terminal Window, but the output file just literally shows the \e commands (like \e[0m). I think this is because a Terminal Window is an ASCII interpreter and Outlook is not.
use the HTML tag <strong>
You can use Ruby on Rails' Action Mailer. Use its html method and do the text decoration in HTML.
Related
I want to create a program that works like an autocomplete box for Microsoft Word. For that, I need some way of reading the contents of the page and getting the positions of words. I know that Microsoft has made a Javascript API for creating plugins in the form of side panes, but that's not what I'm after.
Grammarly manages to read the contents of the document and even underline specific words.
Maybe they have some agreement with Microsoft? Or could they be using some hacky solution? I did try to use win32api with both Python and C++ but didn't succeed.
I use mailto to send mail using RTL language like Hebrew. I send plain text as recommended inside that content, I place one URL link, which turn out to be a hyperlink in outlook, but the link got broken.
What I found, there are some character like (Left-to-right_mark) got inserted inside that link though not visible.
I have checked the that when I send the text then there is no such character but it is appearing(though not visible) in the outlook. For this reason if you copy that link and paste it in address bar that also not work.
I had a few bookmarklets that used a technique like:
javascript:(function(){open('data:text/html,'+encodeURIComponent('<!DOCTYPE html><html><head><title>Title</title></head><body><h1>Title</h1>Content</body></html>'))})()
This basically opens some text/html content in a new tab/window using a data url.
This technique apparently does not work anymore in Firefox 61.0.1 (haven't tested other versions). Is this a bug or by design?
A particular implementation using a javascript url doesn't appear to work either.
If this is by design, then is there any simple alternative other than opening a new tab and then writing the content afterwards?
Note: I believe this restriction does not apply to plain text content (possibly others).
Partial answer:
javascript:(function(){open('javascript:"'+encodeURIComponent('<!DOCTYPE html><html><head><title>Title</title></head><body><h1>Title</h1>Content</body></html>')+'"')})()
The above is a workaround. encodeURIComponent is useful if either double quotes or single quotes need to be escaped (but not both at the same time)
How can I select a text in reading mode in outlook to be used by an add-in?
In compose mode, I used getselecteddataasync() API for getting the selected text.However, this API has a limitation that it does not work in read mode.
Looking for a similar one in read mode.
Other option could be to use the body API as referenced here:
https://dev.outlook.com/reference/addins/1.1/Office.context.mailbox.item.html#bod
y
Using this, whole body will be selected. I can use regEx and hashTags but that is not what i want. I want to know what text has been selected in reading mode.
I am using HTML and JS for coding this addin.
I don't think you have another option then playing with regEx and hashTags on the string you get from :
Office.context.mailbox.item.body.getAsync
Look here:
https://social.msdn.microsoft.com/Forums/office/en-US/b51a8873-ce77-418c-bd27-e2f29b277e4d/itemgetselecteddataasync-is-undefined-doesnt-exist-mail-apps?forum=appsforoffice
This outlook add in API limited in many things...
Good Luck
We are using the TinyMCE control to handle formatted text in our web application. We support accented characters in our application. However, pasting accented characters into a field between other text (accented or not) causes IE8 to freeze and it must be restarted. If we paste into an empty field it works fine, if we paste at the beginning or end of the field it does not crash. It only crashes when pasting between other text. This does not happen in FireFox or Chrome.
I have identified the "paste" plugin as the problem, but we need to use this plugin to properly paste text from MS word into the application. I have not been able to find anything in TinyMCE's documentation or on their forum. I have posted a few things on their forum and I have not received any responses.
Does anyone else have this problem and a possible solution (other than don't use IE)?