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

[4.x] Editor-XTD buttons in subform insert content to first row only #39416

Closed
crystalenka opened this issue Dec 14, 2022 · 4 comments
Closed

Comments

@crystalenka
Copy link
Member

Steps to reproduce the issue

  1. Create a custom field of type editor. Make sure the "Buttons" option is set to yes. Set the editor to subform only.
  2. Create a custom field of type subform. Add the editor field to it. Make sure multiple is set to yes.
  3. Edit an article where the field is available.
  4. Add 2-3 rows of the subform.
  5. On the last subform row, use an editor button ("CMS content" in TinyMCE) to insert something like a menu item.

Expected result

Content is inserted in the editor field where the button was pressed.

Actual result

Content is inserted in the editor field in the first row only.

System information (as much as possible)

J 4.2.6
PHP 8.1

Additional comments

@richard67
Copy link
Member

Closing as having a pull request. Please test #39449 . Thanks in advance.

@Fedik
Copy link
Member

Fedik commented Dec 19, 2022

That kind of "known issue" since subform exist, there no easy fix for it currently.

Work around:

  • add rows that you need,
  • save the article
  • now buttons should work

@crystalenka
Copy link
Member Author

That kind of "known issue" since subform exist, there no easy fix for it currently.

Work around:

  • add rows that you need,

  • save the article

  • now buttons should work

There's a PR open :) also that's not accurate, it also happens after saving.

@Fedik
Copy link
Member

Fedik commented Dec 19, 2022

hmhm, It worked in j3?

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

No branches or pull requests

4 participants