mapPlaceholderToSuggestion exported directly. see #553
This commit is contained in:
parent
385241efb3
commit
cc2d3b8e5a
1 changed files with 7 additions and 8 deletions
|
|
@ -339,6 +339,12 @@ export async function prepareCustomDataPHsForImport(placeholders){
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function mapPlaceholderToSuggestion(p) {
|
||||||
|
return {
|
||||||
|
command: '{%' + p.id + '%}',
|
||||||
|
type: p.type
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export const placeholdersUtils = {
|
export const placeholdersUtils = {
|
||||||
|
|
||||||
|
|
@ -575,11 +581,4 @@ export const placeholdersUtils = {
|
||||||
return element;
|
return element;
|
||||||
},
|
},
|
||||||
|
|
||||||
mapPlaceholderToSuggestion(p) {
|
}
|
||||||
return {
|
|
||||||
command: '{%' + p.id + '%}',
|
|
||||||
type: p.type
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue