Coder Social home page Coder Social logo

Comments (7)

ajays-msft avatar ajays-msft commented on August 10, 2024

@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.

Gabriel2048 avatar Gabriel2048 commented on August 10, 2024

@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.

ajays-msft avatar ajays-msft commented on August 10, 2024

@Gabriel2048 - Unfortunately, this is due to complexity of how each of the platforms are implemented.

from office-js.

Gabriel2048 avatar Gabriel2048 commented on August 10, 2024

@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.

mmanjaree-msft avatar mmanjaree-msft commented on August 10, 2024

@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.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on August 10, 2024

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.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.