1. #91
    Ext User
    Join Date
    Mar 2008
    Posts
    24
    Vote Rating
    0
    craigharmonic is on a distinguished road

      0  

    Post Another issue

    Another issue


    Also having another issue with the editor.
    I load it using metaForm which all seems to work great except I get 2 errors:

    this.getDoc() has no properties
    http://127.0.0.1/Conductor/Conductor...ce/tiny_mce.js
    Line 1

    e has no properties
    http://127.0.0.1/Conductor/Conductor...ce/tiny_mce.js
    Line 1

    I have followed the examples and tried placing the following code before my onReady event:

    Code:
    // Initialise the TinyMCE editor for use by any of the components
    Ext.ux.TinyMCE.initTinyMCE();
    But this didn't help, possibly because I am using meta form. Any help would be greatly appreciated!

    Apart from the 2 errors (and the resize issue above) - which I think has to do with how I am creating the editor, this is a great extension. Thank you!

  2. #92
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    687
    Vote Rating
    22
    Dumbledore will become famous soon enough Dumbledore will become famous soon enough

      0  

    Default


    i have a problem when rendering components in Ext.onReady...

    I call Ext.ux.TinyMCE.initTinyMCE() before Ext.onReady. the Editor will be rendered but with the wrong configuration...

    With first call of Ext.ux.TinyMCE.initTinyMCE() the editor(s) will be initialized with the standard configuration. After that tmceInitialized will be true.

    Then comes the calls of my xtypes... But tmceInitialized is true from the first call an the editors will not be initialized with the right language...

    Next Problem:

    When use the Spellchecker-Plugin the misspelled word are marked for a second and will be overwrited when call form.isDirty().

    Any ideas?

    Bye, Dumbledore

  3. #93
    Ext User
    Join Date
    Oct 2007
    Posts
    10
    Vote Rating
    0
    AVerta is on a distinguished road

      0  

    Default Post don

    Post don


    Hi,

    I

  4. #94
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    687
    Vote Rating
    22
    Dumbledore will become famous soon enough Dumbledore will become famous soon enough

      0  

    Default


    Hi AVerta,

    your must sync the value before submit via syncValue() or tinyMCE.triggerSave();

    Bye, Dumbledore

  5. #95
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    687
    Vote Rating
    22
    Dumbledore will become famous soon enough Dumbledore will become famous soon enough

      0  

    Thumbs up usefull modifications!?

    usefull modifications!?


    Hi,

    after study the source and the documentation of tinyMCE i modified this extension for my personal requirements.

    I implement a isDirty() Funtion:

    Code:
    /**
    * own isDirty() Function - maps to the TinyMCE-isDirty()
    */
    isDirty : function() {
        if(this.disabled) {
            return false;
        }
    
        return this.ed.isDirty();
    }
    and i inserted in setValue following to get the isDirty() working:

    Code:
    /** ----------------------------------------------------------
    */        
    setValue : function( v ){
    	this.value = v;
    	if( this.rendered )
    		this.withEd( function(){
    			this.ed.undoManager.clear();
    			this.ed.setContent( v === null || v === undefined ? '' : v );
    			
    			// rb - patch for handling isDirty()
    			this.ed.startContent = this.ed.getContent({format : 'raw'});
    			
    			this.validate();
    		});
    },

    perhaps someone find it usefull...


    Bye, Dumbledore

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

      0  

    Default


    Hi!

    Sorry, guys, it was a long time since my last reply.

    Quote Originally Posted by craigharmonic View Post
    ...
    If you do a similar check as the suggestion above all works fine, perhaps this needs adding to the next version?
    Current version uses native TinyMCE's resize method so all such issues should be gone automatically.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

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

      0  

    Default


    Quote Originally Posted by craigharmonic View Post
    I am having a problem getting the HTML Editor to resize in a split frame. When I drag the split frame left or right I want my editor to resize accordingly.

    I have set both the width of the editor and the tinyMCE config to 100% and the initial size works fine. Then when I drag the frame splitter the tinyMCE element does not resize. What's the best solution for this?

    Is there a resize event for this UX that I can use? (The idea would be to add a listener on the tinymce object that listens for moving of the split and calls resize).
    All resizing is inherited from Ext.BoxComponent, so it should work as other elements. For an instance, standard "resize" event should be fired. I've checked resizing to the "fit" layout (works) and vertical resizing with Ext's resizer. It was working as expected. If this problem still persist, can you provide me with test case on the base of my example files?

    Just as a notice, TinyMCE's built-in resizing mechanism is not supported. Use Ext instead.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

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

      0  

    Default


    Quote Originally Posted by Dumbledore View Post
    i have a problem when rendering components in Ext.onReady...

    I call Ext.ux.TinyMCE.initTinyMCE() before Ext.onReady. the Editor will be rendered but with the wrong configuration...

    With first call of Ext.ux.TinyMCE.initTinyMCE() the editor(s) will be initialized with the standard configuration. After that tmceInitialized will be true.

    Then comes the calls of my xtypes... But tmceInitialized is true from the first call an the editors will not be initialized with the right language...
    Have you tried to pass right configuration to initTinyMCE() function? It accepts the same settings object as TinyMCE itself.
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

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

      0  

    Default


    Quote Originally Posted by Dumbledore View Post
    after study the source and the documentation of tinyMCE i modified this extension for my personal requirements.
    ...
    I've added it to the trunk.

    BTW, have you checked - maybe it's enough to simply set startContent to the value of setValue parameter?
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

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

      0  

    Default


    Quote Originally Posted by craigharmonic View Post
    Also having another issue with the editor.
    I load it using metaForm which all seems to work great except I get 2 errors:...
    Can you reproduce it on the base of one of my test files?
    Andrew Mayorov (blog)
    BYTE-force
    We can provide paid remote consultancy on ExtJS or our components.

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)