1. #351
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    652
    Vote Rating
    0
    Dumbledore is on a distinguished road

      0  

    Default


    so, after some debugging i see that the event editorcreated will be fired to early.

    I change this:

    Code:
    			// Fix editor size when control will be visible
    			(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( size.width, size.height);
    					
    					// Indicate that editor is created
    					this.fireEvent("editorcreated");  // add here
    				});
    			}).call( this );
    
    			// Indicate that editor is created
    			//this.fireEvent("editorcreated");   // this i remove and add this above

  2. #352
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    184
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default Version 0.8.1 released

    Version 0.8.1 released


    Guys, please check out new version - 0.8.1:
    http://blogs.byte-force.com/media/p/40520.aspx

    Removed dependency on MIframe. Rewritten is the code for editor resize. Hope, now it will work correctly in all cases.

    @Dumbledore
    Your change is not incorporated yet. Will do it soon.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  3. #353
    Sencha User walldorff's Avatar
    Join Date
    Mar 2008
    Location
    Antwerp, Belgium
    Posts
    164
    Vote Rating
    2
    walldorff is on a distinguished road

      0  

    Default


    Great! Thank you for sharing, xor.
    ExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8

  4. #354
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    652
    Vote Rating
    0
    Dumbledore is on a distinguished road

      0  

    Default


    another small patch for the 0.8.1

    add this in onRender:

    Code:
    // Create TinyMCE editor.
    this.ed = new tinymce.Editor(id, this.tinymceSettings);
    
    // Create a new Windows Group for the dialogs
    this.ed.windowGroup = new Ext.WindowGroup();
    this.ed.windowGroup.zseed = 12000;
    and this in Window.Manager.open:

    Code:
    var win = new Ext.Window(
    {
    	title: s.name,
    	width: s.width,
    	height: s.height,
    	minWidth: s.min_width,
    	minHeight: s.min_height,
    	resizable: true,
    	maximizable: s.maximizable,
    	minimizable: s.minimizable,
    	modal: true,
    	stateful: false,
    	constrain: true,
    	layout: "fit",
    	manager : this.editor.windowGroup,
    	items: [
    		new Ext.BoxComponent({
    			autoEl: {
    				tag: 'iframe',
    				src: s.url || s.file
    			},
    			style : 'border-width: 0px;'
    		})
    	]
    });
    Then we have a correct zindex of the dialogs when using TinyMCE inside of an Ext.Editor.

  5. #355
    Sencha User
    Join Date
    Jun 2008
    Posts
    69
    Vote Rating
    0
    uwolfer is on a distinguished road

      0  

    Default


    Why do you put the whole component into "(function() {"? This is not usual for a component. I have removed it and it works fine without.

    You could also add the ComponentMgr registration which allows creation by xtype:
    Code:
    Ext.ComponentMgr.registerType("tinymce", Ext.ux.TinyMCE);
    Tocco AG - technology meets spirit
    http://www.tocco.ch

  6. #356
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    184
    Vote Rating
    0
    xor is on a distinguished road

      0  

    Default


    uwolfer, registerType is there already. It is on the line 512 of my distrubution.

    Outer "(function()" is intended to hide some implementation details from polluting global namespace. It allows for making some kind of private variables and functions. Why do you think you should remove it? Is there any objective reason?
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

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

      0  

    Lightbulb Version 0.8.2

    Version 0.8.2


    Hello!

    Just released version 0.8.2. It incorporates changes offered by Dumbledore, refactored a bit.

    I also redesigned component page. It has a link to download area, so grab release from there:
    http://blogs.byte-force.com/xor/tinymce/

    Demo package does not include demo page any more. Only test-example files and release notes. I think it is more logical, but tell me if you miss the index page.


    Finally, I've made a donation button with help of Moneybookers. Some of you wanted to support the component development, so now it is possible. It is there, on the side bar of the component's page. I hope it is working. If not, please let me know.
    Last edited by xor; 19 Apr 2010 at 11:34 PM. Reason: Added link
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  8. #358
    Ext JS Premium Member
    Join Date
    Jul 2009
    Location
    Netherlands, NH
    Posts
    14
    Vote Rating
    0
    hansl1963 is on a distinguished road

      0  

    Default


    Hello xor,

    I'm using tinymce in a window containing a form panel and a tabpanel.
    This tabpanel contains tree tabs with a tinymce editor inside.

    If I click on each tab everything works ok, but when don't click all tabs and save the form/close the window I get the following errors in FF:

    e is null
    http://scada/hans/scada2/lib/own/ux/...75ebb948cf220b
    Line 7537

    and

    el is undefined
    http://scada/hans/scada2/lib/ext/ext...448bfded73d534
    Line 5947

    Does this sound familliar to you (or anybody else)?????
    What am I doing wrong, I can't find the problem and hope somebody can help me..

    I'm using Ext.ux.TinyMCE.js version v0.8.2 (without iframes)

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

      0  

    Default


    hansl1963, can you make little test case based on one of test.*.html files in my distribution? Put there your tab panel configuration and form submit code (no server-side is required, as error occurs immediately as I got from your explanation). I will debug it and see what's wrong.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  10. #360
    Sencha User
    Join Date
    Jun 2008
    Posts
    69
    Vote Rating
    0
    uwolfer is on a distinguished road

      0  

    Default


    Quote Originally Posted by xor View Post
    Outer "(function()" is intended to hide some implementation details from polluting global namespace. It allows for making some kind of private variables and functions. Why do you think you should remove it? Is there any objective reason?
    I remember I had some issues with the "(function()" wrapping, but I do not really remember what they were exactly. It could be something with loading order (if TinyMCE was loaded after the plugin...) But not sure. The only thing you hide is IMHO "var tmceInitialized" (and some TinyMCE stuff, which is global anyways). That could be done in another way (probably set it on the prototype).

    I also have changed the code that it does not break if TinyMCE is not included in a specific page. It also improves loading performance since it does initialization (and override of TinyMCE stuff) in case of usage, not on init.

    See the attached patch for some changes and improvements.
    Attached Files
    Tocco AG - technology meets spirit
    http://www.tocco.ch

Thread Participants: 127

  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. alex-t.de (1 Post)
  74. Denny Crane (2 Posts)
  75. lucasmarin (1 Post)
  76. dayext (1 Post)
  77. adamadax (2 Posts)
  78. ben_dog (2 Posts)
  79. paulyb263 (1 Post)
  80. iLoLo21 (2 Posts)
  81. queej (5 Posts)
  82. arnab_ghosh (2 Posts)
  83. vanadium (1 Post)
  84. emmadi (5 Posts)
  85. pablitobs (4 Posts)
  86. mstroeve (2 Posts)
  87. mschwartz (5 Posts)
  88. armagedon (1 Post)
  89. Stju (3 Posts)
  90. elderotaku (1 Post)
  91. ahwin (6 Posts)
  92. lakilevi (2 Posts)
  93. zeos (1 Post)
  94. sergiu079 (1 Post)
  95. Toon (2 Posts)
  96. Jangla (4 Posts)
  97. mjh (3 Posts)
  98. treadmill (3 Posts)
  99. joejernst (2 Posts)
  100. alumb (1 Post)
  101. Aniruddha (1 Post)
  102. hansl1963 (5 Posts)
  103. andynuss (9 Posts)
  104. davidbuzatto (3 Posts)
  105. slsmithtx (2 Posts)
  106. asagala (11 Posts)
  107. juste_millieu (1 Post)
  108. skunk (2 Posts)
  109. mrjoltcola (1 Post)
  110. damo (2 Posts)
  111. ivanatora (3 Posts)
  112. JeanNiBee (2 Posts)
  113. lj2008 (1 Post)
  114. countdown (1 Post)
  115. cstansbury (2 Posts)
  116. Boxcopter (1 Post)
  117. mjbohn (3 Posts)
  118. ajlaluan (1 Post)
  119. Tpona (1 Post)
  120. omerfarooq123 (2 Posts)
  121. sraghavachari (1 Post)
  122. jorgelive (1 Post)
  123. wboard (2 Posts)
  124. wpoosanguansit (1 Post)
  125. DaviPresentia (1 Post)
  126. aa0 (1 Post)
  127. odaihatim (1 Post)

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar