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

Link popup doesn't open when using iframe #375

Open
skehokin opened this issue Jul 21, 2023 · 1 comment
Open

Link popup doesn't open when using iframe #375

skehokin opened this issue Jul 21, 2023 · 1 comment

Comments

@skehokin
Copy link

react-froala-wysiwyg v4.1.0

When clicking on the link button in the toolbar, the link popup does not open/show.

Note that this problem only occurs when iframe: true.

The DOM doesn't appear to be updated when this happens. zIndex has been increased for popups but this hasn't fixed the issue for the link popup. This occurs for all input widths.


const config = {
      attribution: false,
      useClasses: false,
      heightMin: 200,
      iframe: true,
      scrollableContainer: '#froala-wrapper', 
      toolbarButtons: {
        moreRich: {
          buttons: ['insertLink', 'insertImage', 'insertTable', 'quote'],
          buttonsVisible: 4
        }
      },
      pluginsEnabled: [
        'table',
        'quote',
        'quickInsert',
        'paragraphFormat',
        'paragraphStyle',
        'draggable',
        'align',
        'lists',
        'link',
        'url',
        'image',
        'emoticons',
        'colors',
        'entities',
        'inlineClass',
        'inlineStyle',
        'imageTUI'
      ]
    }

  return (
    <div
      width={'100%'}
      id='froala-wrapper'
      style={{ position: 'relative' }}
    >
      <FroalaEditor
        tag='textarea'
        model={value}
        onModelChange={handleChange}
        config={config}
      />
    </div>
  );

For context: This issue occurs in v4.1.0 but not v4.0.19 so appears to be very recent. My project is dodging the issue by using the older version for now.

@torrac12
Copy link

image

v4.1.1 as well

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

2 participants