Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no tooltip when clicking link within the text #1189

Open
spaceexperiment opened this issue Oct 16, 2024 · 0 comments
Open

no tooltip when clicking link within the text #1189

spaceexperiment opened this issue Oct 16, 2024 · 0 comments

Comments

@spaceexperiment
Copy link

Jodit Version: 4.2.37

**Browser:Chrome
**OS:Mac
**Is React App:True
**Reproduced on xdsoft.net:False

Code

import { useEffect, useRef } from 'react';

import clsx from 'clsx';
import { Jodit } from 'jodit';
import 'jodit/esm/plugins/fullsize/fullsize.js';
import 'jodit/esm/plugins/preview/preview.js';
import 'jodit/esm/plugins/source/source.js';
import 'jodit/esm/plugins/spellcheck/spellcheck.js';
import 'jodit/esm/plugins/copy-format/copy-format.js';
import 'jodit/esm/plugins/symbols/symbols.js';
import 'jodit/esm/plugins/indent/indent.js';
import 'jodit/esm/plugins/justify/justify.js';
import 'jodit/esm/plugins/print/print.js';
import 'jodit/esm/plugins/image/image.js';
import 'jodit/esm/plugins/resizer/resizer.js';

import 'jodit/es2018/jodit.min.css';

export const RichTextEditor = () => {
    const ref = useRef(null);

    useEffect(() => {
        Jodit.make(ref.current, {
            theme: 'default',
            toolbarAdaptive: false,
            uploader: {
                insertImageAsBase64URI: true,
            },
            image: {
                editSrc: false,
                editId: false,
                editClass: false,
            },
            language: 'en',
            disablePlugins: 'enter',
            showCharsCounter: false,
            showWordsCounter: false,
            showXPathInStatusbar: false,
            enter: 'DIV',
            buttons: [
                'bold',
                'italic',
                'underline',
                'strikethrough',
                'ul',
                'ol',
                'paragraph',
                'superscript',
                'subscript',
                'brush',
                'image',
                'spellcheck',
                'copyformat',
                'table',
                'link',
                'symbols',
                'indent',
                'outdent',
                'align',
                'source',
                'preview',
                'print',
                'fullsize',
            ],
        });
    }, []);

    return (
        <div className={clsx('editor-wrapper')}>
            <textarea ref={ref} />
        </div>
    );
};

Expected behavior:
show tooltip when clicking the link to modify it
Screenshot 2024-10-16 at 16 45 08

Actual behavior:
nothing is showing, same thing with table and image, clicking it shows nothing
Screenshot 2024-10-16 at 16 37 38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant