-
24 Apr 2010 8:38 PM #371
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
-
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.
Tocco AG - technology meets spirit
http://www.tocco.ch
-
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
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
-
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
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:
change to:Code:// Create a new Windows Group for the dialogs var windowGroup = new Ext.WindowGroup(); windowGroup.zseed = 12000;//Another version had 20000 here
and then MessageBox's will have the highest z-index.Code:// 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?
Bye, Dumbledore
-
3 May 2010 9:32 PM #380
Yes, it probably should be a config param. The only app I'm using it in (for now) works with 8000 fortunately.


Reply With Quote

