1. #261
    Ext User
    Join Date
    Mar 2009
    Posts
    3
    Vote Rating
    0
    mjh is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottco View Post
    Hi all,

    I hope this is the right place to be posting this.

    I was using the plugin and all was good until I tried the Image Manager (the paid for plugin from moxiecode). A couple of modifications were required. Now I'm not suggesting this the is the best answer but it works. I am using TinyMCE 3.2.2.1 and Image Manager 3.0.6.1 (not the latest version) and Ext.ux.TinyMCE 0.6.

    At the close method of WindowManager add at the top:
    Code:
                    // ImageManager
                    if( win.mcImageManager ) {
                        var w = Ext.getCmp( this.params.mce_window_id );
                        if( w ) {
                            this.onClose.dispatch( this );
                            w.close();
                        }    
                    }
    [ using this.params.mce_window_id doesn't seem ideal - but I couldn't find a more sensible reference to the Ext component anywhere]
    I had to change

    Code:
      if( win.mcImageManager )
    to

    Code:
     if( win.ImageManager ) {
    To get the image manager window to close automatically after selection of the image.

  2. #262
    Ext User
    Join Date
    Mar 2008
    Posts
    6
    Vote Rating
    0
    vishee is on a distinguished road

      0  

    Default Issue with changing language - TinyMCE

    Issue with changing language - TinyMCE


    Hi,

    After downloading the French language pack for TinyMCE and integrating it under my project I tried to change the language via the plugin Ext.ux.TinyMCE.js but was not able to get the french text on tooltip.


    I tried adding some codes in Ext.ux.TinyMCE.js :

    the method initTinyMCE was changed as follows:

    var s = {
    mode : "none",
    plugins : Ext.ux.TinyMCE.tinymcePlugins,
    theme: "advanced",
    language: "fr"
    };

    But this did not work.

    Any idea what is wrong?

    Using ExtJS 2.2 and the latest version of the Ext.ux.TinyMCE.js (V0.6)
    Note that I have no issues when using the default English language.

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

      0  

    Default


    Vishee, it should work when you simply pass necessary language in tinymceSettings.language config parameter. At least it is working well with russian locale.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  4. #264
    Ext User
    Join Date
    Mar 2008
    Posts
    6
    Vote Rating
    0
    vishee is on a distinguished road

      0  

    Default


    xor, thanks for your prompt reply.

    As per your advice, I have changed the language setting - removed if from initTinyMCE method and added it in the constructor as follows

    var config = {
    tinymceSettings: {
    accessibility_focus : false,
    language: "fr"

    }
    };

    When testing with this code, it gives me the English text.

    The French language pack for TinyMCE works well when there is no integration with ExtJS. However I have noted that the code in the earlier post (#262) gave me the text key values like 'advanced.bold_desc' etc. I don't know whether tinyMCE does find the proper path for the fr files. How can I test this?

    Thanks in advance.

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

      0  

    Default


    Vishee, try to initialize TinyMCE using Ext.ux.TinyMCE.initTinyMCE method. Do it onLoad() of the page. And don't forget to specify language in the call to this method. Parameters are the same as in call to tinyMCE.init().
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  6. #266
    Sencha User thesilentman's Avatar
    Join Date
    Apr 2007
    Location
    Athens, Greece
    Posts
    232
    Vote Rating
    2
    thesilentman is on a distinguished road

      0  

    Default Solution for plugin errors: WindowManager.superclass.setTitle is undefined

    Solution for plugin errors: WindowManager.superclass.setTitle is undefined


    Finally got some time to take a look at the extension and do a little testing.


    The problem with opening a plugin's window (in my case image manager and file manager) and getting error messages like:

    Code:
    WindowManager.superclass.setTitle is undefined
    WindowManager.superclass.setTitle.call( this, win, ti );
    ... can be fixed by adding in the 'open' function, after :

    Code:
    	this.params = p;

    the following:


    Code:
    	if (p.handle=='file'){
    		s.name='File Manager';
    	}        
    	if (p.handle=='image,media'){
    		s.name='Image Manager';
    	}

    and after


    Code:
    	setTitle : function( win, ti ) {
    the following:
    Code:
    	if ( ti == 'Moxiecode Image Manager' ||  ti == 'Moxiecode File Manager') {
    		return;
    	};


    The first part checks if we're using the file or image manager and sets the title accordingly.

    The second part again checks for usage of one of the above and returns to the caller. (This way it doesn't go further down the script, which causes the error).

    If you have any other plugins you can just change the check for the p.handle to check for your plugin's handle.
    Don't forget to change the second part, too, according to your plugin's title.

    Hope I helped.

    Greetings,
    Frank

  7. #267
    Ext User
    Join Date
    Mar 2008
    Posts
    6
    Vote Rating
    0
    vishee is on a distinguished road

      0  

    Default Issue with changing language - TinyMCE

    Issue with changing language - TinyMCE


    Quote Originally Posted by xor View Post
    Vishee, try to initialize TinyMCE using Ext.ux.TinyMCE.initTinyMCE method. Do it onLoad() of the page. And don't forget to specify language in the call to this method. Parameters are the same as in call to tinyMCE.init().
    Xor, I think that your solution here is the right one. I have applied it and now instead of showing the french text it shows 'advanced.underline_desc' etc. I think that the problem is that it is trying to look for the fr.js file but does not find it though I have the fr.js file under the 'langs' folder. I have all the fr files under the 'langs' folder.

    When I changed the language to 'en' with
    Ext.ux.TinyMCE.initTinyMCE({ language: "en"});

    all the stuffs was working as before which means that it can see all the en files and the corresponding keys.

    So I can conclude that it may be something to do with the French language pack. Will try to check and keep you updated.

    Thanks

  8. #268
    Ext User
    Join Date
    Mar 2008
    Posts
    6
    Vote Rating
    0
    vishee is on a distinguished road

      0  

    Default


    Quote Originally Posted by vishee View Post
    Xor, I think that your solution here is the right one. I have applied it and now instead of showing the french text it shows 'advanced.underline_desc' etc. I think that the problem is that it is trying to look for the fr.js file but does not find it though I have the fr.js file under the 'langs' folder. I have all the fr files under the 'langs' folder.

    When I changed the language to 'en' with
    Ext.ux.TinyMCE.initTinyMCE({ language: "en"});

    all the stuffs was working as before which means that it can see all the en files and the corresponding keys.

    So I can conclude that it may be something to do with the French language pack. Will try to check and keep you updated.

    Thanks
    Xor, I finally got it to work .

    As I was using tinymce inside a Window, I just added the language to the tinymceSettings and it is working now. I do feel that your solution should have done the trick. I still have kept the changes that you suggested previously. Thanks for your help and patience.

    Please find below extract of the solution:

    Code:
                myEditorWin = new Ext.Window({
                    applyTo     : 'layer-win',
                    layout      : 'fit',
                    width       : 650,
                    height      : 400,
                    closeAction :'hide',
                    closable	: true,
                    plain       : true,
                    bodyStyle	: 'top: 200px;',
    				region: 'center',
    				autoScroll: true,          
    				items: 
    					[{
    						xtype: 'tinymce',
    						id:'editor',
    						fieldLabel:'Insérer texte',
    						height:200,
    						width:200,
    		            	anchor:'98%',
    						tinymceSettings: {
    							language : 'fr',
    							theme : 'advanced',
    							plugins: 'example,safari,pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template',
    							theme_advanced_buttons1 : 'bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,fontselect,fontsizeselect,|,mylistbox', /*add bullist and numlist on the menu tollbar*/
    							theme_advanced_buttons2 : 'cut,copy,paste,pastetext,pasteword,|,search,replace,|,outdent,indent,blockquote,|,undo,redo,|,forecolor,backcolor',
    							theme_advanced_buttons3: '',
    							theme_advanced_toolbar_location: 'top',
    							theme_advanced_toolbar_align : 'left',
    							//theme_advanced_statusbar_location : 'bottom',
    							theme_advanced_resizing : true
    							//content_css : 'css/myEditorContent.css'
    						}
    				}
    			],...

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

      0  

    Default Version 0.7-b1

    Version 0.7-b1


    Hi!

    Guys, I've just finished v0.7-b1. Works with ExtJS 3.0 and latest TinyMCE. Let's altogether test it.
    Attached Files
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

  10. #270
    Sencha User thesilentman's Avatar
    Join Date
    Apr 2007
    Location
    Athens, Greece
    Posts
    232
    Vote Rating
    2
    thesilentman is on a distinguished road

      0  

    Default


    Andrew,

    seems to work fine with a few tests. Though not thoroughly tested yet.
    However I had to redo the additions, I posted in a previous post, to get the image and filemanager plugins running.

    Thanks for the great plugin!

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