Hi RunningUtes,
as the person who originally documented this feature, I had another look
at the code and I believe this is a bug, since in the code it seems to
be supposed to work that way, but on line 37 of
|$:/core/modules/editor/operations/text/prefix-lines.js|, it seems to
end up comparing an integer to a string.
/Andreas
Am 17.01.2018 um 06:26 schrieb RunningUtes:
I posted this to the general TW forum
<https://groups.google.com/d/msg/TiddlyWiki/89gKQpuV6k0/nQyjDQbCBgAJ>,
but no one has responded...
A tm-edit-text-operation is supposed to preform an operation on
selected text but it doesn't seem to do as the documentation lists.
https://tiddlywiki.com/#WidgetMessage%3A%20tm-edit-text-operation
<https://tiddlywiki.com/#WidgetMessage%3A%20tm-edit-text-operation>
If selected text is bolded, the '' is added as a prefix and as a
suffix. If the same text is already bolded and the operation is run
again, the '' is removed. See the rules in
$:/core/ui/EditorToolbar/list-bullet.
This doesn't seem to happen for the prefix-lines operation.
For example, select several lines of text and press the unordered list
button. A * will be added as a prefix according to the rules in
$:/core/ui/EditorToolbar/list-bullet. If the same text is selected and
the unordered list button is pressed again, the * is not removed. In
fact, nothing happens. The documentation states that the prefix should
be removed from the selected lines.
Is this a bug in the code of the current TW?
The problem seems to be in
$:/core/modules/editor/operations/text/prefix-lines.js
--
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 tiddlywikidev+unsubscr...@googlegroups.com
<mailto:tiddlywikidev+unsubscr...@googlegroups.com>.
To post to this group, send email to tiddlywikidev@googlegroups.com
<mailto:tiddlywikidev@googlegroups.com>.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/f7f9961a-1f99-4dd5-8307-470a7f61ca93%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywikidev/f7f9961a-1f99-4dd5-8307-470a7f61ca93%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/20d28dc0-4d43-7fa2-2dc2-1eaf42252efa%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.