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

      0  

    Default


    Hi,

    nice idea.

    Where is the error element is placed? Can you give the screenshot?

    What is MyTitleTextfield? Did you introduced a special field for error displaying?

  2. #72
    Ext JS Premium Member
    Join Date
    Mar 2011
    Location
    Aachen, Germany
    Posts
    47
    Vote Rating
    0
    SommerEngineering is on a distinguished road

      0  

    Smile


    My trick/nip is, that I have a TextField before the editor (see screenshot; its the MyTitleTextfield). Its the topic / subject for the body like e.g. for an e-mail. Then I know that the position of the warning sign (visible or not does not matter) of this textfield is correct. So I use the X position of the sign from the textfield also for the editor.

    tinyMCE-extjs.png

  3. #73
    Ext JS Premium Member
    Join Date
    Mar 2011
    Location
    Aachen, Germany
    Posts
    47
    Vote Rating
    0
    SommerEngineering is on a distinguished road

      0  

    Default


    A more common solution would be to dynamically get the child before the editor or the parent of the editor and use his X position of his warning sign Okay, its a bad hack but it works fine...

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

      0  

    Default


    OK. It can be done also without additional fields. When you switch the editor to the textarea while it is invalid, you will see the error sign behind this in the top right corner. You can shift it a little bit to the right like in your example.

    But there is not always enough free place, e.g. in my demo example there is no place.

    I will think about a general solution.

  5. #75
    Ext JS Premium Member
    Join Date
    Mar 2011
    Location
    Aachen, Germany
    Posts
    47
    Vote Rating
    0
    SommerEngineering is on a distinguished road

      0  

    Default


    In my example, the free space on the right side (between form elements and border of the window) comes not by me. Its automatically added by ExtJS. I think it comes from my fieldDefaulds of the form where I use msgTarget: 'side'.

    Thanks that you try to build a common solution

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

      0  

    Default


    New version 2.2

    Fixed bug with the validation behavior. Now, if the validateOnChange is true, the contents is validated upon leaving the editor.

    PS
    The problem of the displaying of the error message is still not solved.

  7. #77
    Sencha User
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    53
    Vote Rating
    2
    HTK is on a distinguished road

      0  

    Default


    I had a problem with the textarea width because I am using a fieldLabel. I saw that in the version 2.2 of the TinyMCETextArea.js he is recalculating the width if there is a label. At line 350 in the me.on('resize'....
    PHP Code:
    if(elm.hasVisibleLabel())
          {
              
    width width - (elm.labelWidth elm.labelPad);
          } 
    I guess this is not required if the label is on top of the field while it is required when label is left. So my problem was he subtracted the width of the label while it is above the field and so the mce editor isn´t displayed with full width. I fixed it with a check like this:
    PHP Code:
    if(elm.hasVisibleLabel() && elm.labelAlign == 'left')
          {
              
    width width - (elm.labelWidth elm.labelPad);
          } 
    Maybe this is an optimalization for future. This is a nice feature, hope this post makes it even better.

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

      0  

    Default


    Thank you for your note! I will take it into the next release.

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

      0  

    Default


    New version 2.3

    Fixed bug with labelAlign=top

  10. #80
    Sencha User
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    53
    Vote Rating
    2
    HTK is on a distinguished road

      0  

    Default


    Hey Qtx, thx for the new release. That is fast. Could you describe what would be the best practice to implement a custom plugin for the toolbar. While watching your code it is not very clear to me how to do that. In my case I need to seperate my custom plugins from the original. I want to place them in different folder. How to achieve this ?

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