Announcement

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

    Editor in different tabs

    I am using CKEditor as explained here:
    https://isomorphic.atlassian.net/wik...or+as+a+widget

    Everything is working fine (except that I changed
    Code:
     baseFloatZIndex: 300000,
    by
    Code:
     baseFloatZIndex: 1000000,
    The floating windows of the ckEditor were not showing instead (I am using the newest CKEditor, maybe something changed here?)

    Anyway, as I said, everything is working. BUT, when I have 2 different instances of the CKEditor in different smartGWT Tabs, the editor in the second tab is always undefined except I explicitly select the second tab.

    So:
    1) Open my tabSet
    2) Select second tab
    3) -> Works

    But
    1) Open my tabSet
    2) If I call any function of the editor, it is undefined.

    I think this happens because the editor is only created when the tab is selected. Is it possible to make the editor to always draw, even if not visible?

    #2
    I think this is related to how smartGWT creates content on tabs.
    When I select the second tab, I see how the CKEditor is being created (since it loads for 1 second).

    Is it possible to make the content to be created on the tab creation , even if not visible ?

    Comment


      #3
      You could programmatically select the second tab and switch back to the first tab.

      Comment


        #4
        I already tried that, but seems not to work, since I still get undefined.
        It only works if I manually select the second tab, the editor loads, and then I press the button which accesses the editor

        Comment


          #5
          You should find that drawing of your Canvas that contains the CKEditor occurs when you select the second tab. However if you are trying to synchronously access the CKEditor instance, it may be undefined or not in a valid state for a few seconds - that's not something SmartGWT can control or affect.

          Comment

          Working...
          X