24 Apr 2010 8:38 PM #371
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:
Thanks is advance
26 Apr 2010 3:42 AM #372
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.
27 Apr 2010 11:04 PM #373
28 Apr 2010 7:01 AM #374
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.
28 Apr 2010 7:12 AM #375
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.
29 Apr 2010 4:01 AM #376
29 Apr 2010 5:05 AM #377
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.
2 May 2010 3:55 PM #378
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:
// Create a new Windows Group for the dialogs var windowGroup = new Ext.WindowGroup(); windowGroup.zseed = 12000;//Another version had 20000 here
// Create a new Windows Group for the dialogs var windowGroup = new Ext.WindowGroup(); windowGroup.zseed = 8000;
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.
2 May 2010 9:57 PM #379
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?
3 May 2010 9:32 PM #380