1. #371
    Ext User
    Join Date
    Mar 2010
    Posts
    7
    Vote Rating
    0
    ajlaluan is on a distinguished road

      0  

    Default


    Hi gurus,

    I am implementing my own file browser for tinyMCE. I referenced tiny_mce_popup.js to support some functions in returning values in image dialog window but unfortunately I got tinymce is null error when loading my page.

    Does anyone from the community who experienced and solved this problem? Or can anyone from the group helped me out in returning values from a custom file browser to the standard image dialog window of tinyMCE?

    This is the link where I based the function:
    http://wiki.moxiecode.com/index.php/..._Return_Values

    Thanks is advance

  2. #372
    Sencha User
    Join Date
    Jun 2008
    Posts
    70
    Vote Rating
    0
    uwolfer is on a distinguished road

      0  

    Default


    xor, attached you can find the whole file with all my changes. Thanks for looking into it. Feel free to use any of the changes in your official code.
    Attached Files
    Tocco AG - technology meets spirit
    http://www.tocco.ch

  3. #373
    Ext User
    Join Date
    Dec 2009
    Posts
    5
    Vote Rating
    0
    lj2008 is on a distinguished road

      0  

    Default


    it's great,I will use it

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

      0  

    Default


    Ajlaluan, maybe you should also include main tinymce script into your popup? But honestly, I don't know. I believe it will be more productive to ask this question at TinyMCE forum. After all, here we merely binding existing TinyMCE code with Ext JS.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

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

      0  

    Default


    uwolfer, can you explain what benefits are you getting by putting WindowManager and ControlManager classes creation into initTinyMCE method? Their code will be anyway executed only after an isntance of a class would be created. I.e. in onRender method.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  6. #376
    Sencha User
    Join Date
    Jun 2008
    Posts
    70
    Vote Rating
    0
    uwolfer is on a distinguished road

      0  

    Default


    Quote Originally Posted by xor View Post
    uwolfer, can you explain what benefits are you getting by putting WindowManager and ControlManager classes creation into initTinyMCE method? Their code will be anyway executed only after an isntance of a class would be created. I.e. in onRender method.
    Without my change, the plugin overrides the methods / classes at load time of the plugin. That requires loading TinyMCE before loading the plugin. With my changes, the overrides of TinyMCE classes is done of first initialization of a Ext form field (some type of lazy loading). It does also not produce any JS errors if TinyMCE is not included in some pages where it is not required (may be the case in some applications...).
    Tocco AG - technology meets spirit
    http://www.tocco.ch

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

      0  

    Default


    OK, I got it. Certainly, I was not thinking of a scenario when TinyMCE could be not loaded at all. In this case I' prefer to lazily load Ext.ux.TinyMCE also. Actually, we use this approach in our applications. If I need Ext.ux.TinyMCE, then it also automatically load all dependencies.

    If community doesn't insist, I' prefer not to include this "lazy loading" modification in the trunk. I believe its use case is quite rare.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  8. #378
    Sencha User
    Join Date
    Sep 2007
    Posts
    46
    Vote Rating
    1
    kavih7 is on a distinguished road

      0  

    Lightbulb MessageBox zseed

    MessageBox zseed


    I ran into a problem with the zseed windowgroup managing MessageBox dialogs being too low. Its either that or the declared zseed for the tinyMCE windowgroup is too high. In any case, moving the zseed down by a thousand from where the MessageBox starts (9000) seemed to fix it. So, in this bit of code:

    Code:
    // Create a new Windows Group for the dialogs
    var windowGroup = new Ext.WindowGroup();
    windowGroup.zseed = 12000;//Another version had 20000 here
    change to:

    Code:
    // Create a new Windows Group for the dialogs
    var windowGroup = new Ext.WindowGroup();
    windowGroup.zseed = 8000;
    and then MessageBox's will have the highest z-index.

    To see the issue, click on the insert image tool, put in a URL to an image and click "Insert." A MessageBox will appear behind that insert image tool window.

    I searched this big thread for a possible solution to this issue, but since I didn't find one, above is mine. Let me know if there is a more supported solution or if the issue was already addressed.
    Kavih Williams
    CEO/Founder - Push Channels & Browser Not Included
    On Twitter

  9. #379
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    671
    Vote Rating
    0
    Dumbledore is on a distinguished road

      0  

    Default


    hmm... 8000 is to low...

    I use the TinyMCE inside an Ext.Editor. The rendering is ok, but when use a plugin the new dialogs are behind the Ext.Editor. Perhaps this should be a config parameter?

    Bye, Dumbledore

  10. #380
    Sencha User
    Join Date
    Sep 2007
    Posts
    46
    Vote Rating
    1
    kavih7 is on a distinguished road

      0  

    Default


    Yes, it probably should be a config param. The only app I'm using it in (for now) works with 8000 fortunately.
    Kavih Williams
    CEO/Founder - Push Channels & Browser Not Included
    On Twitter

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)