1. #21
    Sencha User
    Join Date
    Jun 2008
    Posts
    289
    Vote Rating
    16
    Qtx will become famous soon enough

      0  

    Default


    Hi,

    I added this part of code

    Code:
        if (!tinymce.dom.Event.domLoaded) {
          tinymce.dom.Event.domLoaded = true;
        }
    For setting the baseURL, I found the standard way which is offered by TinyMCE for your case

    tiny_mce_src.js, line 40
    Code:
                // TinyMCE .NET webcontrol might be setting the values for TinyMCE
                if (win.tinyMCEPreInit) {
                    t.suffix = tinyMCEPreInit.suffix;
                    t.baseURL = tinyMCEPreInit.base;
                    t.query = tinyMCEPreInit.query;
                    return;
                }
    So, you have to set tinyMCEPreInit.base. Please try whether this solution works for you.

  2. #22
    Sencha User
    Join Date
    Jul 2008
    Location
    Czech republic
    Posts
    49
    Vote Rating
    0
    ondra.cz is on a distinguished road

      0  

    Default


    Yes, you are rigth. But you have to set config
    PHP Code:
    window.tinyMCEPreInit = {
        
    suffix '',
        
    base '/js/tinymce' // your path to tinyMCE
    }; 
    before tinyMCE editor is loaded, for example in application's launch function.

  3. #23
    Sencha User
    Join Date
    Jun 2008
    Posts
    289
    Vote Rating
    16
    Qtx will become famous soon enough

      0  

    Default


    New version 1.6
    • Added support for dynamic loading only if required
    • The version of the tinymce is replaced with the newest one 3.5.4.1

  4. #24
    Sencha User
    Join Date
    Apr 2012
    Location
    Netherlands
    Posts
    22
    Vote Rating
    1
    jvisser is on a distinguished road

      0  

    Default Change event

    Change event


    How can I subscribe to the change event?

    This doesn't work:me.
    mon(me, 'change', function () { alert('change!'); });

    I'll keep looking.
    Last edited by jvisser; 11 Jul 2012 at 11:36 PM. Reason: Formatting FUBAR

  5. #25
    Sencha User
    Join Date
    Jun 2008
    Posts
    289
    Vote Rating
    16
    Qtx will become famous soon enough

      1  

    Default


    I have checked this issue. The change event works only if the Editor is hidden. If the Editor is active, it does not.

    The reason is that the editor is bound directly to the native textarea, not to the TextArea ExtJS object. All changes are saved directly to the textarea.

    I will study the case to find out how to bound to the events of the TinyMCE and fire the corresponding ExtJS events.

    Now, you can use work around - bind the onchange event directly to the text area.

  6. #26
    Sencha User
    Join Date
    Jun 2008
    Posts
    289
    Vote Rating
    16
    Qtx will become famous soon enough

      1  

    Default


    New version 1.7
    • Added onchange event
    Please note:

    This function is called once the user "blurs" the area (in the same way a textarea or input field is blurred upon exiting that field) and it will check if a change has occurred. It will also fire when a new undo level is added to the queue. Undo levels are added when the user types text and then moves the cursor, performs an action like pressing the bold button while having text selected, or pressing return. There are many ways undo levels get added to the editor.

    It is important to note that the onchange callback will not fire on each keystroke due to performance considerations.

    http://www.tinymce.com/wiki.php/Conf...hange_callback

  7. #27
    Sencha User
    Join Date
    Apr 2012
    Location
    Netherlands
    Posts
    22
    Vote Rating
    1
    jvisser is on a distinguished road

      0  

    Default Size issue

    Size issue


    The longer i'm using your ux component, the better it gets

    When I put the Ext.ux.form.TinyMCETextArea editor in a Window, Panel or Container it's is slightly too high. Any idea why?

  8. #28
    Sencha User
    Join Date
    Apr 2012
    Location
    Netherlands
    Posts
    22
    Vote Rating
    1
    jvisser is on a distinguished road

      0  

    Default


    Sorry,

    Setting
    theme_advanced_row_height: 27
    like mentioned in the documentation fixes it.

  9. #29
    Sencha User
    Join Date
    Apr 2012
    Location
    Netherlands
    Posts
    22
    Vote Rating
    1
    jvisser is on a distinguished road

      0  

    Default Small code errors

    Small code errors


    In the Ext.ux.form.TinyMCETextArea class there's a line of code that gets screwed up when minified


    Look at the second line:


    // we pass the height and width explicitly to the editor
    me.tinyMCEConfig.width = me.lastWidth + +me.getWidthCorrection();
    me.tinyMCEConfig.height = me.lastHeight;
    There are 2 + with a space. It get's minified as ++ and that has a whole different meaning.


    Can you fix that?


    There are also 2 extranous commas at the last '}' of both classes. I think that shouldn't always be a problem.But I think the should be removed.

  10. #30
    Sencha User
    Join Date
    Jun 2008
    Posts
    289
    Vote Rating
    16
    Qtx will become famous soon enough

      0  

    Default


    Hi,

    thank for the feedback I fixed it. But I could find only one extraneous comma. Where is the second? Could you tell me the line number of these commas.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi