Hi BJ! Hi Mark!
What a difference two breaks make! Great thanks, I would never have
found that trick! I think the rest now is getting the CSS right!
I will have to do some work until I can show the Editor I need this for.
Best wishes Jan
Am 12.07.2019 um 13:47 schrieb BJ:
Hi Jan,
for thi
Hi Jan,
for this to work you need double lines before and after the macro:
<$macrocall $name="dialogue" text={{!!dialogue}}/>
and I think you return value needs to be like this:
exports.run = function(text) {
text = text.split("\n[[").join("\n:[[");
return text.split("\n").
Hi Mark!
Thanks, the desired colons :-) now are there! But all \n seem to be
eaten, even the double \n\n which should make a linebreak.
You can see the test here *http://szen.io/dia/ * which I hope can
explain a little what I am trying to achive.
I changed it the function to
| exports.ru
Ah, there we go. it's "\n" not "/n".
There are other tweaks. I think the \n on the first [[ might be getting
trimmed off.
Good luck!
On Thursday, July 11, 2019 at 4:48:53 PM UTC-7, Jan wrote:
>
> Hi Mark,
> you are right in both dimensions: It does not throw the error-alert
> anymore...but i
Hi Mark,
you are right in both dimensions: It does not throw the error-alert
anymore...but it apparently does nothing else either.
It should turn a link (containing the name of the role) at the beinning
of the Line in editmode into a descriptive list
[[Rolename]] which in Wikisyntax can be indi
You seem to have wrapped the function in another function. This seems to
"work"
/*\
title: $:/core/modules/macros/Dialogue.js
type: application/javascript
module-type: macro
Making some replacements in Textinputs
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
6 matches
Mail list logo