mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 05:53:47 +08:00
16 lines
252 B
JavaScript
16 lines
252 B
JavaScript
Ember.Test.registerAsyncHelper("formatTextWithSelection", function(
|
|
app,
|
|
text,
|
|
[start, len]
|
|
) {
|
|
return [
|
|
'"',
|
|
text.substr(0, start),
|
|
"<",
|
|
text.substr(start, len),
|
|
">",
|
|
text.substr(start + len),
|
|
'"'
|
|
].join("");
|
|
});
|