[tw5] Re: "Loud Tones?" on Discourse discussion: talk.tiddlywiki.org

2021-09-17 Thread Charlie Veniot
It would be good for the discourse forum to indicate that moderators can also edit members' posts to benefit the community. That should be mentioned prominently in terms of use or something. That aside, I wish you and other members all the best over in the discourse forum. You've put together

[tw5] Re: "Loud Tones?" on Discourse discussion: talk.tiddlywiki.org

2021-09-17 Thread TW Tones
Oh, and you can edit to correct your post :) I have *just run across the road and discovered that side is much greener* :) On Saturday, 18 September 2021 at 11:12:42 UTC+10 TW Tones wrote: > Folks, > > As you may know I am a regular contributor to the community. I just want > to let you

[tw5] "Loud Tones?" on Discourse discussion: talk.tiddlywiki.org

2021-09-17 Thread TW Tones
Folks, As you may know I am a regular contributor to the community. I just want to let you know although I will always support the use of Google Groups, *I am now only an occasional visitor here.* Without entering into the detailed evaluations and comparisons these are *my reasons why*; -

[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread Pekka
Thank you. Much appreciated. Pekka On Friday, September 17, 2021 at 12:20:21 PM UTC+3 PMario wrote: > On Friday, September 17, 2021 at 11:11:40 AM UTC+2 Pekka wrote: > > Now I was able to create a function that operates "inside" >> tm-edit-text-operation. I suppose it would similarly be

[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread PMario
On Friday, September 17, 2021 at 11:11:40 AM UTC+2 Pekka wrote: Now I was able to create a function that operates "inside" > tm-edit-text-operation. I suppose it would similarly be possible to react > to custom created messages as well, e.g. tm-user-specified-message? > Yes. The mechanism is

[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread Pekka
Thanks a lot! It was enough and I got the idea. I'm now able to achieve what I want. I did not know one could so easily create own functions that react to sendmessage. I was afraid I would have to modify the core and create own event listeners etc. which is currently out of my abilities.

[tw5] [NOOB] need some help with filters OR instead of AND

2021-09-17 Thread Peter Dart
Hey Guys Apologies if this is a duplicate. This could be a simple answer but i have been looking at it for days and still not getting there. I am using a macro i found on the web called tagfilter ($:/.tb/macros/tagfilter), just had another look and i can't see where i got it from. Its pretty

[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread PMario
The prerelease contains a new HowTo: https://tiddlywiki.com/prerelease/#How%20to%20create%20dynamic%20editor%20toolbar%20buttons which shows how to create new toolbar buttons. ... The messages used by those buttons are created with module-type: texteditoroperation JS function. -mario --

[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread PMario
On Friday, September 17, 2021 at 9:15:34 AM UTC+2 PMario wrote: ... > IMO that will get you started. ... If it doesn't let us know. .. It's > relatively easy to extend those functions, .. once you see the concept. > The core concept is modular and can be extended with your own "toolbar button

[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread PMario
Hi Pekka, If you search the TW source for "module-type: texteditoroperation" .. you will find 9 text operator functions. They are all part of the $:/core/modules/editor/operations/text/ namespace. If you start with an easy one: $:/core/modules/editor/operations/text/insert-text.js you'll

[tw5] Re: Editing Drafts from JavaScript

2021-09-17 Thread Pekka
Hi Mark, Thanks for the reply. I did not explain my goals properly. I would basically like to create a new EditorToolbar button similar to bold, italic etc. but with custom functionality. I have successfully created buttons that can edit the text in normal Tiddlers but I cannot do the same