>
>
> Do you know why one example works and the other one doesn't ? For me both
> look the same.
>
I had a brief look and I think the problem is that the codemirror widget
isn't being refreshed correctly (as you'll have spotted it works fine
without the codemirror plugin). I'll investigate further.
Best wishes
Jeremy.
>
> El miércoles, 23 de abril de 2014 17:02:19 UTC+2, Danielo Rodríguez
> escribió:
>
>> Hello,
>>
>> I'm still working extending the edit-text widget. I want to do it more
>> responsive, so I want it to update itself when any of its attributes
>> changes.
>> The weird thing that I'm getting is that instead of refreshing it creates
>> a new instance of itself reflecting the changes.
>>
>> I suspect the problem is how I extended the execute function:
>>
>>
>> EditTextWidget.prototype.executeOld = EditTextWidget.prototype.
>> execute;
>>
>> EditTextWidget.prototype.execute = function(){
>> EditTextWidget.prototype.executeOld.call(this);
>> this.codemirrorMode = this.getAttribute("mode") || "javascript";
>> this.theme = this.getAttribute("theme") || "default";
>> };
>>
>>
>> Any help is welcome
>>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>
--
Jeremy Ruston
mailto:[email protected]
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.