Hi Danielo

>
> Thank you for the explanation. Again, this requires to edit the core and
> it's only functional if you have the correct widget/plugin.
>

I'm not sure what you referring to here?


> I think this should work as the css rules and let the user add new event
> listeners without modifying the core.
>

I'm suggesting that the core be refactored so that users can add new global
widget message handlers (there's nothing to stop a plugin from adding DOM
event handlers). A lot of refactoring goes towards the goal of making
things more easily configurable.

Best wishes

Jeremy



>
> Thanks.
>
> El martes, 15 de abril de 2014 13:59:51 UTC+2, Jeremy Ruston escribió:
>>
>> Hi Danielo
>>
>>
>>>  It's not possible for a plugin to add content to a tiddler without
>>>> overriding it. That's why we do so much configuration via system tags,
>>>> which makes it much easier to augment existing functionality.
>>>>
>>>
>>> Ok, then I think is a good idea to add a sort field and the sort
>>> operator in the transclusion list. This way you can add a button in the
>>> exact position that you want without asking the user to open  the system
>>> tiddler manually and transcluding it by hand. There is no need to change
>>> anything because the tiddlers without priority just takes 0 priority.
>>>
>>
>> You  can add a button to the exact position you want using the `list`
>> field, or the `list-before` and `list-after` fields introduced in 5.0.9.
>>
>>
>>> In the case of the navigator widget you'll often be wanting instead to
>>>> add a global message handler. There's a bunch of them defined in
>>>> startup.js, and in due course you'll be able to add global message handler
>>>> modules.
>>>>
>>>
>>
>>>  How can I do this? Let's say that I want a message handler that reacts
>>> to drop events before the current dropzone and if its not their
>>> responsibility let the dropzone react. How can I achieve this?
>>>
>>
>> I was talking about the root widget message handlers in startup.js. For
>> example, here's the one that handles the `tw-modal` message:
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/
>> modules/startup.js#L113
>>
>>  Customising the dropzone widget will probably be a matter of extending
>> the widget to make it more extensible. As usual, it depends what you're
>> trying to do.
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to