1. #381
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    Guys, maybe it is possible find out what WindowGroup is in effect and specify it to the TinyMCE field? I mean, if you use TinyMCE inside Ext.Editor, then maybe editor has its own WindowGroup, and you can find out what group manager is used and specify it to the TinyMCE field?

    In other case, I afraid, your manually selected base z-index sometimes won't fit to given circumstances.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  2. #382
    Sencha User
    Join Date
    Jan 2008
    Posts
    29
    Vote Rating
    0
    sirioz10 is on a distinguished road

      0  

    Default


    Hi,
    may be there is something wrong in fixEditorSize function.

    In some case the iframeHeight var is not computed well, as if the toolbar and the statusbar of the editor are not been fully rendered.

    I also found this workaround:
    Code:
    (function fixEditorSize() {
                
                    // If element is not visible yet, wait.
                    if( !this.isVisible() ) {
                        arguments.callee.defer( 50, this );
                        return;
                    }
                    
                    var size = this.getSize();
                    this.withEd( function() {
                        this._setEditorSize.defer(150,this,[ size.width, size.height] );
                        
                        // Indicate that editor is created
                        this.fireEvent("editorcreated");
                    });
                }).call( this );
    morever, I found that the _setEditorSize function, is also called by the onResize event, before the control is fully rendered.

    Code:
            onResize: function(aw, ah) {
                if( Ext.type( aw ) != "number" ){
                    aw = this.getWidth();
                }
                if( Ext.type(ah) != "number" ){
                    ah = this.getHeight();
                }
                if (aw == 0 || ah == 0)
                    return;
    
                if(this.isVisible() ) { //instead of this.rendered may be a solution?
                    this.withEd(function() { this._setEditorSize( aw, ah ); });
                }
            },
    any help on this issue will be appreciated

  3. #383
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    Not sure it is right solution. Actually, withEd method should check that editor is initialized. If not, it binds to onInit event and only then calls a function passed to the method. TinyMCE documentation states that onInit is fired "after the editor has finished all it's initialization i.e. when it's ready to use". So as I guess, it should be fully rendered at this moment, right?

    Maybe the problem is with loading of toolbar images? Editor is rendered and ready, but icons are not here yet. So at this moment we are getting wrong toolbar size. After a short delay images would be loaded and size gets fixed. Does it sound logical?

    If yes, workaround of setting "defer" to higher numbers is not a real solution. It will backfire when run over slower internet connection.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  4. #384
    Sencha User
    Join Date
    Jan 2008
    Posts
    29
    Vote Rating
    0
    sirioz10 is on a distinguished road

      0  

    Default


    Hi,
    Your reasoning is almost correct.
    The problem is with loading of ui.css, that contains rules for toolbar and statusbar.

    So that putting something as following line before the fixEditorSize call, partially avoid the wrong behavior,(i doesn't consider the statusbar rules):
    Code:
    Ext.util.CSS.createStyleSheet('.defaultSkin span.mceIcon{display:block;height:20px;width:20px;}','tinymce');
    I think that the only exhaustive fix would be handling , in some manner, the onload event of ui.css link, but I don't know if in this case is achievable.

    let me know if you found a solution.

    Regards Fausto.

  5. #385
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    sirioz10, nice hack! But I don't think we should include in into official version. After all, this is a hack. So if one suffers from this problem, he can go and apply your workaround.

    Meanwhile, I filed a bug in TinyMCE tracker. Let's wait for reaction.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  6. #386
    Sencha User
    Join Date
    Sep 2009
    Posts
    112
    Vote Rating
    0
    asagala is on a distinguished road

      0  

    Default


    For anyone having this issue. I had a custom image manager implemented in TinyMCE. Using this plugin my image manager would appear behind the other windows... (didnt do this in previous versions of TinyMCE plugin). I fixed it by removing the window group manager

    Comment this line (#585 in latest TinyeMCE plugin code)
    manager: windowGroup

  7. #387
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    Yes, asagala, windowGroup appears to be a bad idea. As I understand, it now works only if you put the component in Editor. And in all other cases there are problems with popups.

    Dumbledore, this was your proposal, so can you comment on that?
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  8. #388
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    686
    Vote Rating
    22
    Dumbledore will become famous soon enough Dumbledore will become famous soon enough

      0  

    Default


    hmmm... Currently i use the component always inside an editor. I will search another way for better window handling...

    [EDIT]

    The problem is the Ext.Component default zindex. This starts at 11000, windows starts at 9000. In In Ext.ux.TinyMCE the new windows will be opened in WindowManager.open() with the highest window zindex.
    No i will look inside the Ext.HtmlEditor how that component will open another window...

    [another EDIT]
    When using Ext.HtmlEditor inside an Ext.Editor there is the same problem with the zindex. I will ask for a solution in the Premium Forum.

  9. #389
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    Dumbledore, just a though: maybe Editor by itself uses special window group that we can get and pass to Ext.ux.TinyMCE instance?
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  10. #390
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    686
    Vote Rating
    22
    Dumbledore will become famous soon enough Dumbledore will become famous soon enough

      0  

    Default


    no Ext.Editor extends Ext.Component so there is no WindowMgr. I ask the problem in the Premium Forum and Condor recommended a new WindowGroup: http://www.extjs.com/forum/showthrea...136#post471136

    In the moment i have no idea how to solve this...

Thread Participants: 128

  1. galdaka (1 Post)
  2. Dumbledore (26 Posts)
  3. mystix (1 Post)
  4. dawesi (1 Post)
  5. albeva (7 Posts)
  6. ludoo (1 Post)
  7. bloudon (2 Posts)
  8. MarkB (4 Posts)
  9. Cipher (2 Posts)
  10. Hani (3 Posts)
  11. Pagebaker (2 Posts)
  12. DigitalSkyline (1 Post)
  13. thesilentman (5 Posts)
  14. marcing (1 Post)
  15. mschering (5 Posts)
  16. Konstantin (1 Post)
  17. temporary (1 Post)
  18. tobiu (1 Post)
  19. billeatman (1 Post)
  20. kmiyashiro (2 Posts)
  21. cmendez21 (4 Posts)
  22. 6epcepk (2 Posts)
  23. ZooKeeper (6 Posts)
  24. Yossi (5 Posts)
  25. JNason (4 Posts)
  26. ko0kiE (1 Post)
  27. Fredric Berling (2 Posts)
  28. Dongluan (2 Posts)
  29. w011117 (4 Posts)
  30. cnelissen (5 Posts)
  31. cmarin (2 Posts)
  32. lvanderree (21 Posts)
  33. kavih7 (4 Posts)
  34. hjf1223 (1 Post)
  35. AVerta (2 Posts)
  36. MuratCorlu (1 Post)
  37. vironitronox (1 Post)
  38. saJoshua (1 Post)
  39. Kannabismus (1 Post)
  40. supawat (1 Post)
  41. nikatwork (3 Posts)
  42. scipio (1 Post)
  43. neenhouse (2 Posts)
  44. tfrugia (2 Posts)
  45. asugama (2 Posts)
  46. liuliming (1 Post)
  47. marco76 (1 Post)
  48. yaroslav (1 Post)
  49. dverkade (1 Post)
  50. scottco (1 Post)
  51. broutard (1 Post)
  52. cybertaz (2 Posts)
  53. jwendt@iscinternational.com (1 Post)
  54. kai5263499 (1 Post)
  55. sirioz10 (6 Posts)
  56. jenner (5 Posts)
  57. EMP (1 Post)
  58. joao_candido (2 Posts)
  59. uros (1 Post)
  60. craigharmonic (3 Posts)
  61. serff (1 Post)
  62. vishee (4 Posts)
  63. walldorff (3 Posts)
  64. blow (1 Post)
  65. genius3k (1 Post)
  66. ehask71 (2 Posts)
  67. pauleee (1 Post)
  68. illuminum (1 Post)
  69. basti (1 Post)
  70. Qtx (1 Post)
  71. Cravi (1 Post)
  72. uwolfer (5 Posts)
  73. sseema (1 Post)
  74. alex-t.de (1 Post)
  75. Denny Crane (2 Posts)
  76. lucasmarin (1 Post)
  77. dayext (1 Post)
  78. adamadax (2 Posts)
  79. ben_dog (2 Posts)
  80. paulyb263 (1 Post)
  81. iLoLo21 (2 Posts)
  82. queej (5 Posts)
  83. arnab_ghosh (2 Posts)
  84. vanadium (1 Post)
  85. emmadi (5 Posts)
  86. pablitobs (4 Posts)
  87. mstroeve (2 Posts)
  88. mschwartz (5 Posts)
  89. armagedon (1 Post)
  90. Stju (3 Posts)
  91. elderotaku (1 Post)
  92. ahwin (6 Posts)
  93. lakilevi (2 Posts)
  94. zeos (1 Post)
  95. sergiu079 (1 Post)
  96. Toon (2 Posts)
  97. Jangla (4 Posts)
  98. mjh (3 Posts)
  99. treadmill (3 Posts)
  100. joejernst (2 Posts)
  101. alumb (1 Post)
  102. Aniruddha (1 Post)
  103. hansl1963 (5 Posts)
  104. andynuss (9 Posts)
  105. davidbuzatto (3 Posts)
  106. slsmithtx (2 Posts)
  107. asagala (11 Posts)
  108. juste_millieu (1 Post)
  109. skunk (2 Posts)
  110. mrjoltcola (1 Post)
  111. damo (2 Posts)
  112. ivanatora (3 Posts)
  113. JeanNiBee (2 Posts)
  114. lj2008 (1 Post)
  115. countdown (1 Post)
  116. cstansbury (2 Posts)
  117. Boxcopter (1 Post)
  118. mjbohn (3 Posts)
  119. ajlaluan (1 Post)
  120. Tpona (1 Post)
  121. omerfarooq123 (2 Posts)
  122. sraghavachari (1 Post)
  123. jorgelive (1 Post)
  124. wboard (2 Posts)
  125. wpoosanguansit (1 Post)
  126. DaviPresentia (1 Post)
  127. aa0 (1 Post)
  128. odaihatim (1 Post)