On Wednesday, August 18, 2021 at 4:27:18 AM UTC+2 [email protected] wrote:
Aside: I also noticed that if you "Close" an open draft tiddler with the > `X` button, that it deletes the draft from the wiki, and this really > disturbs drafts from other users that are being edited live.... note to > self to file a bug report on that. > The (x) button top right at the edit tiddler toolbar is the "discard changes" button. It needs to delete the draft tiddler. This behaviour can't be changed. If you click the x-button in the right sidebar : Open tab it only removes the tiddler from the story river. So plugins that want to implement a different behaviour have to replace the cancel button depending on the user name. So if the user-name in the wiki is the same as the user-name shown in the draft tiddler they need to see the "core cancel button". ... If it is different they need to see the plugin-cancel-button. Replacing the core button, without modifying it is easy: Set $:/ config/EditToolbarButtons/Visibility/$:/core/ui/Buttons/cancel to "hidden" and it will be gone. The new "Remove draft from story river" button can have a similar icon but only removes the tiddler from the story river. The same function from "sidebar : Open" can be used. Creating a new plugin-cancel-button is simple just tag it $:/tags/EditToolbar -mario -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2865d117-7f76-4189-ba83-f703d6208d94n%40googlegroups.com.

