Skip to content

Panel has z-index of 1000000, breaks tinymce editor #7016

@gbminnock

Description

@gbminnock

Hi, I am using tinymce editor on a Panel component (basically I make the panel full screen). The panel overrides the z-index of the editor disabling menus on it. tinymce has z-index of 65535, 65536 & 65537.

platform: spfx with reactjs
version information:

  • @microsoft/sp-core-library@1.5.1
  • @microsoft/sp-lodash-subset@1.5.1
  • @microsoft/sp-office-ui-fabric-core@1.5.1
  • @microsoft/sp-webpart-base@1.5.1
  • office-ui-fabric-react-bundle@1.5.1
  • office-ui-fabric-react@5.83.0
  • office-ui-fabric-core@9.1.0
  • office-ui-fabric@2.6.1
  • react@15.6.2
  • react-dom@15.6.2

Issue: The Panel control has a z-index of 1000000 which hides the html editors menus.
I tried to override the z-index but have been unable to.

I created a codepen for this: https://codepen.io/gbminnock/pen/aQvrqO in which it seems that the override actually works in the codepen only.

In my code however I have used

.ms-Layer.ms-Layer--fixed {
  z-index:10;
}
.root{
  z-index:10;
}

and

:global .ms-Layer.ms-Layer--fixed {
  z-index:10;
}
:global .root{
  z-index:10;
}

Both do not seem to work in react for overriding the ".root" z-index.
tks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions