1. #11

  2. #12
    Ext User imm's Avatar
    Join Date
    Jan 2009
    Location
    Russia, Saint-Petersburg
    Posts
    7
    Vote Rating
    0
    imm is on a distinguished road

      0  

    Default


    Hi.
    A little bug report. =)
    Cancel button not working in plugin "HR" and "SpecialCharacters".

  3. #13
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Quote Originally Posted by imm View Post
    Hi.
    A little bug report. =)
    Cancel button not working in plugin "HR" and "SpecialCharacters".
    Thanks man, good catch.

    Fixed.

    http://code.google.com/p/ext-ux-html...rce/detail?r=5

  4. #14
    Ext User imm's Avatar
    Join Date
    Jan 2009
    Location
    Russia, Saint-Petersburg
    Posts
    7
    Vote Rating
    0
    imm is on a distinguished road

      0  

    Default


    I wrote some code that upload and insert picture in editor.
    My employer uses a web browser Google Chrome. But it works wrong with the method insertAtCursor(). Google Chrome insert
    Code:
    "<img src='...' />"
    instead
    HTML Code:
    "<img src='...' />".
    Other browsers works fine. How can i fix it?

  5. #15
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Quote Originally Posted by imm View Post
    ...web browser Google Chrome. But it works wrong with the method insertAtCursor() .... Other browsers works fine. How can i fix it?
    I see - it appears that Google Chome htmlencodes the inserted value. Ill take a look into this and let you know what I find.

  6. #16
    Ext User imm's Avatar
    Join Date
    Jan 2009
    Location
    Russia, Saint-Petersburg
    Posts
    7
    Vote Rating
    0
    imm is on a distinguished road

      0  

    Default


    I found a temporary solution.
    If replace
    Code:
    // file: src/widgets/form/HtmlEditor.js
    insertAtCursor : function(text){
        if(!this.activated){
            return;
        }
        if(Ext.isIE){
            this.win.focus();
            var r = this.doc.selection.createRange();
            if(r){
                r.collapse(true);
                r.pasteHTML(text);
                this.syncValue();
                this.deferFocus();
            }
        }else if(Ext.isGecko || Ext.isOpera){
            this.win.focus();
            this.execCmd('InsertHTML', text);
            this.deferFocus();
        }else if(Ext.isWebKit){
            this.execCmd('InsertText', text);
            this.deferFocus();
        }
    },
    to
    Code:
    // file: src/widgets/form/HtmlEditor.js
    insertAtCursor : function(text){
        if(!this.activated){
            return;
        }
        if(Ext.isIE){
            this.win.focus();
            var r = this.doc.selection.createRange();
            if(r){
                r.collapse(true);
                r.pasteHTML(text);
                this.syncValue();
                this.deferFocus();
            }
        }else if(Ext.isGecko || Ext.isOpera || Ext.isChrome){
            this.win.focus();
            this.execCmd('InsertHTML', text);
            this.deferFocus();
        }else if(Ext.isWebKit){
            this.execCmd('InsertText', text);
            this.deferFocus();
        }
    },
    then everything works.
    Maybe if Ext.isWebKit == true need to write 'InsertHTML' instead 'InsertText'?
    What do you think?

  7. #17
    Ext User imm's Avatar
    Join Date
    Jan 2009
    Location
    Russia, Saint-Petersburg
    Posts
    7
    Vote Rating
    0
    imm is on a distinguished road

      0  

    Default


    And I have another stupid question. Why resize of the picture works in Firefox and IE, but does not work in Opera and Google Chrome?
    Attached Images

  8. #18
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Quote Originally Posted by imm View Post
    I found a temporary solution....
    FYI: I posted this as a bug, so we will wait to see what the consensus is.

    http://extjs.com/forum/showthread.ph...333#post359333

  9. #19
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    627
    Vote Rating
    9
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    Have you tested your Word plugin against M$ Office 2007? It seems to be missing some regex's to clean up the M$ trash.

  10. #20
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Quote Originally Posted by zombeerose View Post
    Have you tested your Word plugin against M$ Office 2007? It seems to be missing some regex's to clean up the M$ trash.
    If you let me know exactly what 'trash' remains, I will gladly add it to the plugins cleanup code.

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