@ -302,8 +302,9 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
|
||||
<QuotedStatusContainer composeId={id} />
|
||||
|
||||
<div
|
||||
className={clsx('ml-[-56px] flex flex-wrap items-center justify-between sm:ml-0', {
|
||||
className={clsx('flex flex-wrap items-center justify-between', {
|
||||
'hidden': condensed,
|
||||
'ml-[-56px] sm:ml-0': withAvatar,
|
||||
})}
|
||||
>
|
||||
{renderButtons()}
|
||||
|
||||
@ -79,7 +79,7 @@ const StatePlugin: React.FC<IStatePlugin> = ({ composeId, isWysiwyg }) => {
|
||||
}, 750), []);
|
||||
|
||||
useEffect(() => {
|
||||
editor.registerUpdateListener(({ editorState }) => {
|
||||
return editor.registerUpdateListener(({ editorState }) => {
|
||||
const plainText = editorState.read(() => $getRoot().getTextContent());
|
||||
let text = plainText;
|
||||
if (isWysiwyg) {
|
||||
|
||||
Reference in New Issue
Block a user