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

Cannot read properties of undefined error when "clearFormatting" is clicked #521

Open
athreyacodes opened this issue May 16, 2023 · 0 comments

Comments

@athreyacodes
Copy link

Issue details:
Clicking on clear formatting gives below JS errorWhen the editor has iframe enabled and enter behaviour is true.

new FroalaEditor('div#froala-editor-br', { enter: FroalaEditor.ENTER_BR, iframe: true });

Steps to follow:

  1. In configuration, update enter as FroalaEditor.ENTER_BR
  2. In configuration, update iframe as true
  3. In editor, type few words, select them and change font-size/font-family
  4. click on clear format. Below error is shown

Error:
Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at Object.h [as closeTagString] (froala_editor.min.js:7:10846)

image

JsFiddle:
https://jsfiddle.net/athreyacodes/3dwLhfgo/1/

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