Your platform will be unavailable on the 13th of November 2024 from 9am to 12pm (Paris time) for maintenance operations

  •  
     
    story #23459 import style from a reference document
Summary
Empty
import style from a reference document

I can have a document that looks like my company's template

Tuleap imports style from a reference .dotx document for base styles (heading, hyperlinks, paragraphs, ...). This replace the current way of injecting our styles:

  • Instead of defining our styles, we take the styles from the raw "Word" dotx
  • Site admins can upload their own .dotx somewhere on the filesystem

When a custom .dotx is defined, at document export there is a modal to select if the export is done with "Tuleap template" or with "$COMPANY_NAME template".

Empty
Empty
Status
Empty
Canceled
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#23459
Manuel Vacelet (vaceletm)
2021-11-05 11:13
2021-10-22 12:05
3705

References

Follow-ups

User avatar
Thomas Gerbet (tgerbet)2021-10-29 08:48

For information a first attempt was made at this but this is more challenging than it looks.

The styleId of the default styles such as Heading1 are in fact dependent on the language used by the editor so to import a dotx we would need to either be sure we import from en_US (or something else as long as it is fixed) template or to have the capability to have a map of the different styleId. Also it appears there is some additional subtleties into the mix: for example manually styling a Heading1 paragraph works fine when opening the document in Microsoft Word but does not seem to work when opening the same document in LibreOffice Writer.


  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes