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

Problem with IsInvisible in the configuration #53

Open
estrellagrubioG opened this issue May 14, 2024 · 0 comments
Open

Problem with IsInvisible in the configuration #53

estrellagrubioG opened this issue May 14, 2024 · 0 comments

Comments

@estrellagrubioG
Copy link

Helo and thanks in advance.
I have a problem with an element. In the configuration I have added this method to get if the element 'note' is invisible or not:

note: {
        isInvisible: function(jsElement) {
          var visibility = jsElement.getAttribute("type");
          return (visibility !== undefined && visibility.value === "ejemplos" ? true : false);
        }
      }

The problem is that I want hide the element 'note' inside the editor only when the attribute 'type' is equal to 'ejemplos'. But when I add this method, I can't add any element 'note' because disappear from his parent menu.
What must I do to hide this element inside the editor, making possible to add new elements 'note'?

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