Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Текстовый редактор RichEditor в 2.3.* версиях в хроме
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mn  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 7:46 am
From: mn <vitaly.yuzvis...@gmail.com>
Date: Tue, 13 Sep 2011 04:46:38 -0700 (PDT)
Local: Tues, Sep 13 2011 7:46 am
Subject: Текстовый редактор RichEditor в 2.3.* версиях в хроме
Доброе время суток.

Совсем недавно был коммит (
http://code.google.com/p/energine/source/diff?spec=svn1755&r=1755&for...
) который исправляет проблемы работы с текстом в  Хроме.

Т.к. используется у меня используется устаревшая версия версия
Energine, пришлось адаптировать новую версию редактора. Я уверен что
эта проблема не у меня одного, так что вот  лекарство:

1. Качаем исходник с ссылки выше.
2. Заменяем "single_template" на "componentPath".
3. Ура. Заработало :).

Спасибо разработчикам.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mn  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 7:53 am
From: mn <vitaly.yuzvis...@gmail.com>
Date: Tue, 13 Sep 2011 04:53:28 -0700 (PDT)
Local: Tues, Sep 13 2011 7:53 am
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
упс. ничего не заработало :(

On 13 сен, 14:46, mn <vitaly.yuzvis...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pavel Dubenko  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 7:54 am
From: Pavel Dubenko <d.pa...@gmail.com>
Date: Tue, 13 Sep 2011 14:54:27 +0300
Local: Tues, Sep 13 2011 7:54 am
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
а что говорит девелопмент консоль?

2011/9/13 mn <vitaly.yuzvis...@gmail.com>:

--
Pavel Dubenko, web-developer

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mn  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 8:03 am
From: mn <vitaly.yuzvis...@gmail.com>
Date: Tue, 13 Sep 2011 05:03:10 -0700 (PDT)
Local: Tues, Sep 13 2011 8:03 am
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
Проблема все таже, при переходе в диалог или нажатии на кнопку тулбара
пропадает выделение и позиция курсора. В режиме Source все работает.
Подозреваю что в Webkit-е както странно работает свойство unselectable
в паре с contenteditable.

On 13 сен, 14:54, Pavel Dubenko <d.pa...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pavel Dubenko  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 8:10 am
From: Pavel Dubenko <d.pa...@gmail.com>
Date: Tue, 13 Sep 2011 15:10:39 +0300
Local: Tues, Sep 13 2011 8:10 am
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
аааа
в этом смысле

ндааа
такая проблема пока есть еще

вчерашний коммит исправил ситуацию со вставкой картинки

2011/9/13 mn <vitaly.yuzvis...@gmail.com>:

--
Pavel Dubenko, web-developer

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mn  
View profile  
 More options Sep 13 2011, 9:04 am
From: mn <vitaly.yuzvis...@gmail.com>
Date: Tue, 13 Sep 2011 06:04:11 -0700 (PDT)
Local: Tues, Sep 13 2011 9:04 am
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
ÚÁÒÁÂÏÔÁÌÏ.

× Toolbar.js ÄÁÌÁÅÍ ÔÁËÉÅ ÐÒÁ×ËÉ:

Toolbar.Button = new Class({
        Extends:Toolbar.Control,
    build: function() {
        this.parent();
        var control = this;
        this.element.addEvents({
            'mouseover': function() { if (!
control.properties.disabled) { this.addClass('highlighted'); } },
            'mouseout':  function()
{ this.removeClass('highlighted'); },
//            'click':     function() {  if (!
control.properties.disabled)
{ control.toolbar._callAction(control.properties.action); } },
            'mousedown':function(event) {
                if (event.rightClick) return;
                if (!control.properties.disabled) {

control.toolbar._callAction(control.properties.action);
                }
            }
        });
    }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pavel Dubenko  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 9:20 am
From: Pavel Dubenko <d.pa...@gmail.com>
Date: Tue, 13 Sep 2011 16:20:00 +0300
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
хммм
так я и не понял какие правки?
click добавился?

2011/9/13 mn <vitaly.yuzvis...@gmail.com>:

--
Pavel Dubenko, web-developer

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mn  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 9:28 am
From: mn <vitaly.yuzvis...@gmail.com>
Date: Tue, 13 Sep 2011 06:28:37 -0700 (PDT)
Local: Tues, Sep 13 2011 9:28 am
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
Правки странные получились. Если событие mousedown "заблокировать"
тогда курсор перестает теряться и все функции начинают работать как в
RichEditor-е так и в  PageEditor-е.
Код выше не работает, вот рабочий код:

Toolbar.Button = new Class({
        Extends:Toolbar.Control,
    build: function() {
        this.parent();
        var control = this;
        this.element.addEvents({
            'mouseover': function() { if (!
control.properties.disabled) { this.addClass('highlighted'); } },
            'mouseout':  function()
{ this.removeClass('highlighted'); },
            'click':     function() {  if (!
control.properties.disabled)
{ control.toolbar._callAction(control.properties.action); } },
            'mousedown':function(event) {
                return false;
            }
        });
    }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pavel Dubenko  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 9:59 am
From: Pavel Dubenko <d.pa...@gmail.com>
Date: Tue, 13 Sep 2011 16:59:27 +0300
Local: Tues, Sep 13 2011 9:59 am
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
Учитывая что для оперы (кажется) я когда то как раз и сделал вместо
клика  - маусдаун

окончательный вариант приобрел такой вид(используется MooTools 1.4
соответственно для более ранних версий идентфикация браузера хром
будет другая )

Toolbar.Button = new Class({
    Extends:Toolbar.Control,
    build: function() {
        this.parent();
        var control = this;
        this.element.addEvents({
            'mouseover': function() {
                if (!control.properties.disabled) {
                    this.addClass('highlighted');
                }
            },
            'mouseout':  function() {
                this.removeClass('highlighted');
            }});
        if (Browser.chrome) {
            this.element.addEvents({
                'click':function(event) {
                    if (!control.properties.disabled) {
                        control.toolbar._callAction(control.properties.action);
                    }
                },
                'mousedown': function() {
                    return false;
                }
            })
        }
        else {
            this.element.addEvent('mousedown', function(event) {
                if (event.rightClick) return;
                if (!control.properties.disabled) {
                    control.toolbar._callAction(control.properties.action);
                }

            });
        }
    }

});

mn - большое спасибо за идею

2011/9/13 mn <vitaly.yuzvis...@gmail.com>:

--
Pavel Dubenko, web-developer

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mn  
View profile   Translate to Translated (View Original)
 More options Sep 13 2011, 10:08 am
From: mn <vitaly.yuzvis...@gmail.com>
Date: Tue, 13 Sep 2011 07:08:07 -0700 (PDT)
Local: Tues, Sep 13 2011 10:08 am
Subject: Re: Текстовый редактор RichEditor в 2.3.* версиях в хроме
для MooTools < 1.4:

Toolbar.Button = new Class({
    Extends:Toolbar.Control,
    build: function() {
        this.parent();
        var control = this;
        this.element.addEvents({
            'mouseover': function() {
                if (!control.properties.disabled) {
                    this.addClass('highlighted');
                }
            },
            'mouseout':  function() {
                this.removeClass('highlighted');
            }});
        if (Browser.Engine.webkit) {
            this.element.addEvents({
                'click':function(event) {
                    if (!control.properties.disabled) {

control.toolbar._callAction(control.properties.action);
                    }
                },
                'mousedown': function() {
                    return false;
                }
            })
        }
        else {
            this.element.addEvent('mousedown', function(event) {
                if (event.rightClick) return;
                if (!control.properties.disabled) {

control.toolbar._callAction(control.properties.action);
                }

            });
        }
    }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »