Skip to content
Discussion options

You must be logged in to vote

Found a work-around. I used shading instead of highlight. I still think it would be nice if highlight was supported in charStyles. My code now looks like this:

styles: {
...
  characterStyles: [
    {
      id: "highlight",
      name: "Highlight",
      basedOn: "Normal",
      run: {
        shading: {
          type: ShadingType.CLEAR,
          color: "FFFFFF",
          fill: "FFFF00",
        },
      },
    },
...
],

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dyrector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant