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

[Bug] Field Tinymce didn´t inizialize in repeatable if there is another one somewhere in the form #4318

Closed
SebastianCordiano opened this issue Apr 12, 2022 · 4 comments
Assignees
Labels

Comments

@SebastianCordiano
Copy link

Bug report

What I did

Insert 2 field in my create/update operation, the first one a simple tinymce and the second one a repeatble with a tinymce inside

What I expected to happen

All the tinymce works

What happened

Only the first field initialize correctly and in console the error is: "Uncaught TypeError: o is undefined"
It s seems to be the function "initializeFieldsWithJavascript" that launch only once "bpFieldInitTinyMceElement" (that initialize the tinymce js)
TinymceError

Is it a bug in the latest version of Backpack?

Yes

After I run composer update backpack/crud the bug... is it still there?
yes

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.1.4 (cli) (built: Apr 4 2022 13:30:33) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.4, Copyright (c) Zend Technologies
with Zend OPcache v8.1.4, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v9.5.1@35be2599c9ac3d58bf1578895c2e85ea4848a0d7

BACKPACK VERSION:

5.0.11@337163b7e9a0e63413474bd3ee800a198f83c8e9

@welcome
Copy link

welcome bot commented Apr 12, 2022

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication channels:

  • Bug Reports, Feature Requests - Github Issues (here);
  • Quick help (How do I do X) - Gitter Chatroom;
  • Long questions (I have done X and Y and it won't do Z wtf) - Stackoverflow, using the backpack-for-laravel tag;
  • Showing off something you've made, asking for opinion on Backpack/Laravel matters - Reddit;

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

--
Justin Case
The Backpack Robot

@pxpm pxpm added Possible Bug A bug that was reported but not confirmed yet. and removed triage labels Apr 13, 2022
@pxpm
Copy link
Contributor

pxpm commented Apr 13, 2022

Hello @SebastianCordiano !

Thanks for the report. I was indeed able to reproduce your issue and already submitted a PR to fix it.

I will let you know as soon as it gets merged, it should not take much. Once again, thanks and sorry for the bad experience 🙏

Cheers

@pxpm pxpm added Bug and removed Possible Bug A bug that was reported but not confirmed yet. labels Apr 13, 2022
@tabacitu
Copy link
Member

Merged and tagged. A composer update backpack/pro should do it for you @SebastianCordiano . Thank you!

@vkudrych
Copy link

vkudrych commented Nov 27, 2024

The problem is still here. I'm using backpack/pro:2.2.17

PHP VERSION:

8.3.6

PHP EXTENSIONS:

Core, bcmath, calendar, ctype, date, filter, hash, iconv, json, SPL, pcre, random, readline, Reflection, session, standard, mysqlnd, tokenizer, zlib, libxml, dom, PDO, bz2, SimpleXML, xml, wddx, xmlreader, xmlwriter, mbstring, igbinary, openssl, sockets, Phar, curl,
enchant, exif, fileinfo, ftp, gd, gettext, imagick, intl, mysqli, odbc, pdo_mysql, pdo_pgsql, pdo_sqlite, soap, sqlite3, timezonedb, xmlrpc, xsl, zip

LARAVEL VERSION:

10.48.22.0

BACKPACK PACKAGE VERSIONS:

backpack/backupmanager: v5.0.5
backpack/basset: 1.3.6
backpack/crud: 6.7.37
backpack/devtools: 3.1.6
backpack/editable-columns: 3.0.10
backpack/filemanager: 3.0.8
backpack/generators: v4.0.6
backpack/logmanager: v5.0.2
backpack/menucrud: v4.0.2
backpack/pagemanager: 3.3.1
backpack/permissionmanager: 7.2.1
backpack/pro: 2.2.17
backpack/settings: 3.1.1
backpack/theme-tabler: 1.2.13

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

4 participants