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

Regions doesn't show some elements #554

Open
Jakuboslav opened this issue Jan 16, 2020 · 1 comment
Open

Regions doesn't show some elements #554

Jakuboslav opened this issue Jan 16, 2020 · 1 comment
Labels

Comments

@Jakuboslav
Copy link

Hello,
I am struggling with regions. I have a Tool that extends ContentEdit.Element (Changing for ContentEdit.Text behaves the same).
When I use

                spElement = new SocialPostElement(
                    'div', {
                        'id': id,
                        'url': url
                        'type': @type
                    })

Element is ignored in Region, but if I use default

                spElement = new ContentEdit.Text(
                    'div', {
                        'id': id,
                        'url': url
                        'type': @type
                    },'placeholder')

It is shown in Region. I tried to add defined data-ce-tag but, it didn't help. Adding some placeholder as third parameter doesnt help either.

Is there something I am missing? Do I need to register this tool anywhere in order to work?

Thanks in advance

@anthonyjb
Copy link
Member

Hi @Jakuboslav sorry for the late reply - I'd really need to see the full code for your SocialPostElement in order to help much. My first guess based on what you've provided is maybe the fromDOMElement class method hasn't been overridden for your element type, is there any sort of error message in the console?

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

No branches or pull requests

2 participants