Re: [tw] [TW5] very strange styles of text area in 5.1.12

2016-07-20 Thread Rustem
sini-Kit,

You also have an option to disable the new editor and go back to the 
previous simple textarea-based editor. I insisted on this option being 
included, just like an option to hide foldbars a while back :). 

Originally, the code just copied the styles when the textarea was created, 
> but I received feedback that it was confusing that the background colour of 
> textareas thus didn’t change dynamically during a palette change, so I 
> changed things to re-copy the computed styles on every refresh cycle.
>

Jeremy,
How often does one change the palette? It might be confusing the first 
time. Then you learn to just reload the wiki after a palette change.

--R

On Monday, July 18, 2016 at 12:25:50 PM UTC-7, sini-Kit wrote:
>
> Hi Jeremy! I use IE 11.494.10586.0 
> editor toolbar works good in IE, but I write // !! '' __ manual by habit :)
>
> I have update my tiddlywiki shop demo with my modification of framed.js  
> http://heeg.ru/test/heeg_4_1.html  http://heeg.ru/heeg4.1.zip and 
>  plan to make YouTube lesson about new 
> toolbar and {{ [[ <<  and how to make your own design in TW5 using CSS and 
> color palettes  :) 
>
>  
>
> понедельник, 18 июля 2016 г., 17:19:16 UTC+3 пользователь Jeremy Ruston 
> написал:
>
>> Hi sini-Kit
>>
>> > I try to understand why 5.1.12 works slower in edit mode than older 
>> versions. 
>> > In doom tree I see this style of the text area
>> > I think think that old variant is better.
>>
>> The reason for the copied styles is that with the new editor, the 
>> textarea element is embedded in an iframe. This is done so that it has 
>> independent focus handling from the rest of the page, but it has the 
>> side-effect that styles are not inherited, hence the copying.
>>
>> Originally, the code just copied the styles when the textarea was 
>> created, but I received feedback that it was confusing that the background 
>> colour of textareas thus didn’t change dynamically during a palette change, 
>> so I changed things to re-copy the computed styles on every refresh cycle.
>>
>> I guess there are several things to investigate:
>>
>> * Whether you’d get acceptable performance with the original behaviour of 
>> only copying the styles during widget creation
>> * Whether the style copying itself can be made more efficient. It may be 
>> that there is a particular style property that is very slow to assign, for 
>> example.
>>
>> What version of IE are you using? Do the editor toolbar buttons work as 
>> expected?
>>
>> Best wishes
>>
>> Jeremy
>>
>> I have removed this line from framed.js
>>  // Copy all styles
>>  $tw.utils.copyStyles(this.dummyTextArea,this.domNode); 
>>
>>
>> and now IE woks fast :)
>>
>> textarea style becomes 
>>
>> 
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com.
>> To post to this group, send email to tiddl...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/e3d5d04c-86dd-4dac-ab4e-c57669e18d8e%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5079ae95-1bf2-4aa7-89d7-a513a3c54932%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] very strange styles of text area in 5.1.12

2016-07-18 Thread sini-Kit
Hi Jeremy! I use IE 11.494.10586.0 
editor toolbar works good in IE, but I write // !! '' __ manual by habit :)

I have update my tiddlywiki shop demo with my modification of framed.js  
http://heeg.ru/test/heeg_4_1.html  ( http://heeg.ru/heeg4.1.zip ) and plan 
to make YouTube lesson about new toolbar and {{ [[ <<  and how to make your 
own design in TW5 using CSS and color palettes  :) 

 

понедельник, 18 июля 2016 г., 17:19:16 UTC+3 пользователь Jeremy Ruston 
написал:

> Hi sini-Kit
>
> > I try to understand why 5.1.12 works slower in edit mode than older 
> versions. 
> > In doom tree I see this style of the text area
> > I think think that old variant is better.
>
> The reason for the copied styles is that with the new editor, the textarea 
> element is embedded in an iframe. This is done so that it has independent 
> focus handling from the rest of the page, but it has the side-effect that 
> styles are not inherited, hence the copying.
>
> Originally, the code just copied the styles when the textarea was created, 
> but I received feedback that it was confusing that the background colour of 
> textareas thus didn’t change dynamically during a palette change, so I 
> changed things to re-copy the computed styles on every refresh cycle.
>
> I guess there are several things to investigate:
>
> * Whether you’d get acceptable performance with the original behaviour of 
> only copying the styles during widget creation
> * Whether the style copying itself can be made more efficient. It may be 
> that there is a particular style property that is very slow to assign, for 
> example.
>
> What version of IE are you using? Do the editor toolbar buttons work as 
> expected?
>
> Best wishes
>
> Jeremy
>
> I have removed this line from framed.js
>  // Copy all styles
>  $tw.utils.copyStyles(this.dummyTextArea,this.domNode); 
>
>
> and now IE woks fast :)
>
> textarea style becomes 
>
> 
>
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/e3d5d04c-86dd-4dac-ab4e-c57669e18d8e%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cee8ca15-fcbd-472e-b03a-8bba4b0981b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] very strange styles of text area in 5.1.12

2016-07-18 Thread Jeremy Ruston
Hi sini-Kit

> I try to understand why 5.1.12 works slower in edit mode than older versions. 
> In doom tree I see this style of the text area
> I think think that old variant is better.

The reason for the copied styles is that with the new editor, the textarea 
element is embedded in an iframe. This is done so that it has independent focus 
handling from the rest of the page, but it has the side-effect that styles are 
not inherited, hence the copying.

Originally, the code just copied the styles when the textarea was created, but 
I received feedback that it was confusing that the background colour of 
textareas thus didn’t change dynamically during a palette change, so I changed 
things to re-copy the computed styles on every refresh cycle.

I guess there are several things to investigate:

* Whether you’d get acceptable performance with the original behaviour of only 
copying the styles during widget creation
* Whether the style copying itself can be made more efficient. It may be that 
there is a particular style property that is very slow to assign, for example.

What version of IE are you using? Do the editor toolbar buttons work as 
expected?

Best wishes

Jeremy

> I have removed this line from framed.js
>  // Copy all styles
>  $tw.utils.copyStyles(this.dummyTextArea,this.domNode);
> 
> 
> and now IE woks fast :)
> 
> textarea style becomes
> 
>  placeholder="Введите текст заметки">
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywiki@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/e3d5d04c-86dd-4dac-ab4e-c57669e18d8e%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CD49D9BA-7859-48E8-91CB-14891BB41DC2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] very strange styles of text area in 5.1.12

2016-07-17 Thread sini-Kit
I try to understand why 5.1.12 works slower in edit mode than older 
versions. 
In doom tree I see this style of the text area

`


in tw 5.1.10





I think think that old variant is better.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1c9d08ad-c694-41cb-b5bf-e57cd773c481%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.