Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Show Window modal mask without modality

    Hi!

    Is it possible somehow to display the modal mask even if the window is not modal? So I wouldn't call the

    //setIsModal(true);

    but I would only call the

    setShowModalMask(true);

    I know it seems crazy, but the reason I would like to do this is another issue I have: I integrated the CKEditor into smartgwt and if the CKEditor is placed into a Window then the dialogs opened by the CKEditor are not visible because of some z-index issue. It seems this is a general problem with CKEditor if integrated into other frameworks, because others are complaining about this too. Anyway, if I disable the Window's modality, then magically it works well. But the application's other Windows are all modal, so it looks strange why this one with the CKEditor is not modal. It would be nice if it would be just have the same modal mask. Or it would be even better if I would know why the setIsModal(true) setting results in the z-index issue.

    I am using a smartgwt 3.1-p20140518.

    Thanks!

    #2
    To fix this, set the base zIndex of CKEditor higher than SmartClient components. Some quick Googling will show multiple approaches for doing this in different CKEditor versions.

    Comment


      #3
      Thanks for the answer.

      Yes, that was the first thing I read everywhere, when I started to integrate the CKEditor, that the baseFloatZIndex should be set to some high number. I already set it to 9000000, and tried with higher numbers, without any luck. I just checked the modal mask's z-index with firebug. It is 2147483647, which as I know can be considered as the maximum z-index if we limit it to 32bit signed values. I tried with that too, but didn't worked.

      Comment


        #4
        We don't use the top zIndex for the modal mask. That would prevent anything from appearing above it, for example, the modal Window :)

        You may be seeing some kind of bug in Firebug or a bad result of some experimentation you've been doing. Setting CKEditor zIndexes to large values is a known-working approach.

        Comment

        Working...
        X