You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
302 B
13 lines
302 B
let unique = 0;
|
|
export function useTinymce() {
|
|
function buildShortUUID(prefix = ''): string {
|
|
const time = Date.now();
|
|
const random = Math.floor(Math.random() * 1_000_000_000);
|
|
unique++;
|
|
return `${prefix}_${random}${unique}${String(time)}`;
|
|
}
|
|
|
|
return {
|
|
buildShortUUID,
|
|
};
|
|
}
|
|
|