I need a solution, that when you press a button from a inbox xpages mail message, the new xpages is composed with the body and image and attachment of original inbox message (ckeditor control)
I nave found a Solution for passing HTML to ckeditor but not for attachment and inline image.
Have you any suggest?
P.S. the solution will need work in on-fly mode (without savind document before..so that when you foward an email with a classic webmail)
See my answer below on how to copy contents and images to a CKEditor on the fly:
https://stackoverflow.com/a/19328276/785061
Related
I am trying to have links hyperlinked in my bot's response text but I can't seem to get it to work, and I can't find any resources online about it. The messages would be sent through Dialogflow Messenger.
I tried markdown hyperlinks and html anchor tags.
I think response text use a hyperlink tag as a pure text.
The another way is to write tag in accordion response.
How can I show an html anchor tag in
Office.context.mailbox.item.notificationMessages.addAsync method for "error" key? I have a scenario where user should be able to click on a link from this error message and navigate to a different page.
I tried embedding elements as it's display the 'Dismiss' hyperlink right next to these error message by default. However, this displays these tags as it is.
Please help.
Unfortunately, this capability is not supported for notification messages. They cannot display HTML content and will not honor anchor tags.
I'm writing a telegram bot but I have a question.
For now my bot will search for an image based on user request, but if I the bat found more than one image I want to send to the user a list of image with a link for search that iamge.
Eg.
/command mickey mouse
.... image 1....
I found more than one image, please be more specific
[link to image 2]
[link to image 3]
If the user will click the link I need to autosend message with the command and the name of the new image.
Is possible? I tried to add an hyperlink to the telegram api but i will open in the browser and send me a json with call status of the api.
For inline mode you can simply return a list of image results that will be displayed as kind of a popup on top of keyboard.
For conversation mode you have options:
1) Return images as inline keyboard attachment to a message with array of buttons each having callback_data parameter or switch_inline_query_current_chat or url parameter. Handle one of this to display the image.
2) Return message text as HTML with list of links in form of: image name
Then you can parse the start command and extract image ID. This has disadvantage that user would need to click the "START" button every time after he clicked the link.
You can use the 2nd approach with inline mode as well.
In my #DebtsTrackerBot I use both callbacks & switch_inline_query_current_chat for similar task.
We can vote the suggestion for TelegramBotApi: https://bugs.telegram.org/c/3901
I'm trying to remove a link totally from an email body. I have no idea how by treating body as MIME entity. But I did try for a while in the body as rich text. Here is part of my codes:
RichTextNavigator nav = body.createNavigator();
RichTextRange range = body.createRange();
nav.findFIrstString("theLinkToBeRemoved");
range.setBegin(nav);
range.setEnd(nav);
range.remove();
But only the body inside anchor tags has been removed. For example:
google
actually becomes
after processing and sending email.
My question is how to remove the anchor tags completely. Thanks!
Did you also try with the FindFirstElement method of the RichTextNavigator class, looking for an element of type RichTextItem.RTELEM_TYPE_DOCLINK ?
Hmmm... I wonder, why do you need to remove links... It sounds like a managerial issue that's solved programmatically.
I found a beautiful solution: code.google.com/p/lnrt2html
It achieves the trick of conversion from rich text to html, rather than dxl/xml. And then we have many options to parse html data, such as Jsoup. After that, use this method to input your html string stream to MIMEEntity and send: MIMEEntity - setContentFromText
Is it possible to get the URL details of a Hotspot link inside a RichText content.
Like we can get the DocLink details inside richtext with the help of NotesRichTextDocLink class
Access to Rich text using the native classes of Domino is relly limited. Thus, I'd suggest to export the Rich Text to HTML and parse it to get the url of the link.
See: How to export Rich Text fields as HTML from Notes with LotusScript?
My prefered way is ConvertToMIME.