parent
a44e6455c0
commit
141ab3d0ed
|
@ -217,11 +217,10 @@ const SimplifiedEditor = (props: Props) => {
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
window.addEventListener('keydown', handleKeyDown)
|
window.addEventListener('keydown', handleKeyDown)
|
||||||
})
|
|
||||||
|
|
||||||
onCleanup(() => {
|
onCleanup(() => {
|
||||||
window.removeEventListener('keydown', handleKeyDown)
|
window.removeEventListener('keydown', handleKeyDown)
|
||||||
editor().destroy()
|
editor()?.destroy()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
if (props.onChange) {
|
if (props.onChange) {
|
||||||
|
|
|
@ -114,11 +114,10 @@ export const TextBubbleMenu = (props: BubbleMenuProps) => {
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
window.addEventListener('keydown', handleKeyDown)
|
window.addEventListener('keydown', handleKeyDown)
|
||||||
})
|
|
||||||
|
|
||||||
onCleanup(() => {
|
onCleanup(() => {
|
||||||
window.removeEventListener('keydown', handleKeyDown)
|
window.removeEventListener('keydown', handleKeyDown)
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={props.ref} class={clsx(styles.TextBubbleMenu, { [styles.growWidth]: footnoteEditorOpen() })}>
|
<div ref={props.ref} class={clsx(styles.TextBubbleMenu, { [styles.growWidth]: footnoteEditorOpen() })}>
|
||||||
|
|
|
@ -187,7 +187,6 @@ export const ProfileSettingsPage = () => {
|
||||||
label={t('About myself')}
|
label={t('About myself')}
|
||||||
initialContent={form.about}
|
initialContent={form.about}
|
||||||
onChange={(value) => updateFormField('about', value)}
|
onChange={(value) => updateFormField('about', value)}
|
||||||
maxLength={500}
|
|
||||||
/>
|
/>
|
||||||
{/*Нет реализации полей на бэке*/}
|
{/*Нет реализации полей на бэке*/}
|
||||||
{/*<h4>{t('How can I help/skills')}</h4>*/}
|
{/*<h4>{t('How can I help/skills')}</h4>*/}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user