- Added CKEditor 5 integration with custom plugins for enhanced functionality. - Implemented a unique ID generator for component instances. - Created a dedicated SCSS file for CKEditor styles to ensure proper styling. - Updated the CkEditorComponent to utilize the new setup and improve data handling.
5 lines
185 B
TypeScript
5 lines
185 B
TypeScript
export function uniqueId() {
|
|
const timestamp = Date.now().toString(36);
|
|
const randomPart = Math.random().toString(36).substring(2, 9);
|
|
return `${timestamp}${randomPart}`;
|
|
}
|