PublicLab.Editor
PublicLab.Editor copied to clipboard
get Woofmark tokenizer to run all the time, instead of only on demarkdowning
@jywarren Do you want to incorporate this in markdown as well? Is that what you're saying here?
tokenizers: [
{
token: /(^|\s)@([A-z\_]+)\b/g, // @callouts
transform: function (all, separator, id) {
return separator + '<a href="/profile/' + id + '">@' + id + '</a>';
}
},
{
token: /(^|\s)#([A-z\-]+)\b/g, // #hashtags
transform: function (all, separator, id) {
return separator + '<a href="/tag/' + id + '">#' + id + '</a>';
}
},
{
token: /\[([\S\:\/]+)\]/, // [power:tags]
transform: function (all, keywords) {
return '<div class="powertags">Power tag: ' + keywords + '</div>';
}
}
]
I think originally this was because as you typed @warren for example, it would only convert it into a link if you changed the mode, and it ran its filters. This still seems to be the case! Could we linkify automatically perhaps after the atwho runs?
I think originally this was because as you typed
@warrenfor example, it would only convert it into a link if you changed the mode, and it ran its filters. This still seems to be the case! Could we linkify automatically perhaps after the atwho runs?
@jywarren @sagarpreet-chadha for this, i just figured out we don't currently have the Atwho.js Data Module? There's a documentation about how to include it here in the readme. i can work on this, if we need to.
Thanks!!!
I think this feature was removed, @jywarren were you discussing about this feature in the Staff meeting? I also do not have the full context here.
Oh my gosh, getting Atwho.js working here would be AMAZING. If it's not too much of a detour in your work, we'd really appreciate it!
Oh my gosh, getting Atwho.js working here would be AMAZING. If it's not too much of a detour in your work, we'd really appreciate it!
I think i should do this then.
@jywarren @sagarpreet-chadha this will have to be done at plots2. The editor example has this setup in the data directory already, and is working there.
Will open an issue for this at plots2 then work on it.
Or maybe transfer this one?
Yes let's make a new issue there and linking this issue. Thanks 😄