Apply type of editor?

243 views
Skip to first unread message

Mat

unread,
Jan 26, 2017, 7:56:00 PM1/26/17
to TiddlyWiki
(I think I saw someone else asking about setting a type for the editor, so this might be related:)

Alain Dutechs made the fantastic Edit-Comp Text plugin, i.e a plugin that triggers when you type in [[ and presents you with a dropdown list of available tiddler titles. In tiddler edit mode, mind you!

I wish to use this in EditTextWidget.

In the installation instructions to Alains plugin, he explains that one should:

"...in $:/ControlPanel -> Advanced -> Editor Type -> text/vnd.tiddlywiki you must chose comptext instead of text. "

i.e this says (I think?) that the default text type in TW5 should use the comptext editor rather than the standard text editor.

...but how do I set this to be valid also for the EditTextWidget?

It is apparently possibly to type blocks in WikiText, but my primitive attempts to do so for the EditTextWidget fail. Basically I tried to surround the EditTextWidget with $$$comptext and I've tried using the type attribute in the EdiTextWidget but I suspect that refers to something completely different.

Any help on this would be very much appreciated!!!!!

Thank you!

<:-)


Tobias Beer

unread,
Jan 27, 2017, 1:19:22 AM1/27/17
to TiddlyWiki
Hi Mat,

take a look at the EditWidget.

Best wishes,

Tobias. 

Mat

unread,
Jan 27, 2017, 2:22:21 AM1/27/17
to TiddlyWiki
Tobias - thank you but I already read through that carefully and tried various stuff without success.

Here is a test demo to illustrate the point. (if needed, the password is "password")

My full case is thus to make comptext work in the SideEditor.

Your help is really appreciated!!!

<:-)

Tobias Beer

unread,
Jan 27, 2017, 7:23:05 AM1/27/17
to TiddlyWiki
Hi Mat,

Works fine for me.

All you need to do is use $edit instead of $edit-text in your sideeditor macro, e.g.:

<$edit tiddler="""$tid$""" class="sideeditor" />

Best wishes,

Tobias.

Mat

unread,
Jan 27, 2017, 10:09:36 AM1/27/17
to TiddlyWiki
Ahaaa - change widget all together!

Yes that does work! (even if it removes the pretty rich editor toolbar).

Big thanks Tobias!

<:-)

Jan

unread,
Jan 28, 2017, 4:34:21 PM1/28/17
to tiddl...@googlegroups.com
Hi,
Alain Dutechs Completition-plugin is a great feature!
For example to use TW as a tool for screenwriting, this would be of vital importance.
It is a pitty, that it removes the Edit-bar. Would it be possible to splice this into the normal editor?

best wishes Jan
--
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/ba0f8798-e215-4b67-b1fb-24945f089639%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Diego Mesa

unread,
Oct 23, 2017, 3:56:30 PM10/23/17
to TiddlyWiki
I am also interested in this!

Reply all
Reply to author
Forward
0 new messages