Comments (7)
@Gabriel2048 - Each Outlook client has a specific wrapper built around rooster, so it maybe possible few HTML attributes work fine in some clients but not in all.
As a general rule you should prefer CSS styles over HTML attributes.
You can try out this rooster editor to check different styles: https://microsoft.github.io/roosterjs/index.html#api/insertContent
from office-js.
@ajays-msft
This ("few HTML attributes work") is not pointed out in any documentation and it makes the API unpredictable. Our expectancy is that any valid HTML file should work as expected. Changing from HTML attributes to CSS styling is not an option for us as we are generating the HTML using ASPOSE.
from office-js.
@Gabriel2048 - Unfortunately, this is due to complexity of how each of the platforms are implemented.
from office-js.
@ajays-msft
Does this means this bug will not get fixed and we should communicate to the customer facing this issue that this is an Outlook problem?
from office-js.
@Gabriel2048 Thanks for bringing this up. There are two things here firstly SVG is not supported, so please avoid using it with addin apis. There is a documentation gap which we will fix. Same for the alignment issue. Inline styles are not guaranteed to work inside mail editor and behavior might differ between platforms. We will update details of this as well in documentation.
from office-js.
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!
from office-js.
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.
from office-js.
Related Issues (20)
- How to restrict worksheet deletion in excel using office js. HOT 2
- Outlook Add-in text not binding HOT 3
- Contextless Outlook add-in stays open when switching from Mail to a module extension add-in in OWA and new Outlook HOT 3
- onSelectionChanged not fired in excel on the web in same cell but is fired in excel desktop HOT 7
- Context menu commands not showing when right-click on table range HOT 5
- Outlook Online, addFileAttachmentAsync does not work for inline bitmap (.bmp) images HOT 1
- Admin-managed Add-in is *missing* on Outlook for Mac but it is available on Windows and web client HOT 5
- OfficeRuntime.auth.getAccessToken() throws an error on Firefox browser windows 64 bit HOT 3
- Issue with Displaying Drafts with Many Attachments in Outlook Web HOT 2
- Open file larger than 4 mb in online web word HOT 4
- Numbering Styles do not work on WOPI host (CSPP) HOT 5
- Deleted attachment data is shown in the Office API getAttachmentsAsync request HOT 2
- Office theme colors missing or shifted HOT 4
- How to Generate an Email with a Different βFromβ Address in Office.js and Graph API HOT 1
- In formula arguments, ifempty cells are passed as argument, its value is 0 in desktop and null in office web HOT 6
- Office.context.mailbox.item properties are null in Desktop version for recurring events HOT 10
- CRITICAL: No add-ins available in Outlook HOT 5
- Web add-in not loading in old Outlook windows version HOT 5
- Questions about add-in behavior of shared mailboxes HOT 5
- On-Send web addin does not load when new file is created from group HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-js.