Text tab of the WYSIWYG editor is empty
- This topic has 13 replies, 3 voices, and was last updated 2 years, 6 months ago by
Arno.
-
AuthorPosts
-
October 12, 2022 at 12:21 AM #38634
Arno
ParticipantHi,
I'm using several WYSIWYG fields. The Visual tab works fine: I can enter texts, bullet lists, etc. and save it. However, the Text tab is always completely blank. Shouldn't I see the HTML there?
October 12, 2022 at 12:09 PM #38638Long Nguyen
ModeratorHi Arno,
Can you please share some screenshots of the issue and the code that creates the custom fields on your site? I do not see that issue on my end.
October 12, 2022 at 12:23 PM #38639Arno
ParticipantHi Long,
Here's the screenshot: https://monosnap.com/file/f9PG6mqaFctX0prp6IawaOa0DCvNXX
All fields are created with the UI, not with code. I have the issue with all WYSIWYG fields.
If this is not enough information I can e-mail you a login to a copy of the site.
October 12, 2022 at 2:22 PM #38641Arno
ParticipantIt looks like the editor itself is standard WordPress. I found it is used in other plugins as well, e.g. Code Snippets. There, the Visual and Text tabs both work fine.
October 12, 2022 at 3:48 PM #38644Long Nguyen
ModeratorHi Arno,
Please share your site credentials via the contact form https://metabox.io/contact/
I will take a closer look.October 12, 2022 at 4:44 PM #38645Arno
ParticipantOk, please find the login your e-mail.
If you go to the homepage, edit it, and open the Content summary, you can see the problem. This is just an example, it happens for all Meta Box fields.
But if you go to Code Snippets, open any script, and scroll down to the Description, you'll find the same editor without this issue.
What do you think the problem is?
October 14, 2022 at 8:16 AM #38659Long Nguyen
ModeratorThere was a conflicting issue with another plugin, resolve this by using custom CSS code in the admin area.
.rwmb-wysiwyg.wp-editor-area { visibility: visible !important; }
October 18, 2022 at 12:32 AM #38726Pat Matt
ParticipantI am having the same issue.
Thanks for the answer, but I am unclear as to where to add this css. Admin area? of?
Thank you.
October 18, 2022 at 12:18 PM #38732Arno
ParticipantHi Pat,
I'm using the Code Snippets plugin. I added a CSS snippet and set it to "Administration area styles". There are other ways to do it too.
Are you also using WPML or Fluent Forms by any chance? For a moment I thought they caused this, but it's really hard to find the actual cause, so I gave up and am using the work around.
October 18, 2022 at 10:02 PM #38736Pat Matt
ParticipantThank you Arno.
I'm not running either of them thankfully. I deactivated every single plugin I have except Metabox and the problem still persisted.Does adding the css to code snippets plugin require the pro version? I'd rather upgrade to the pro version that add yet another plugin.
Thanks a million for your help.
October 18, 2022 at 11:12 PM #38740Arno
ParticipantHi Pat,
I think it requires Pro. I have the Pro version as well.
You may also want to try to switch your theme to a default WP theme. If the problem still persists, you have a good case for Meta Box support to look into.
October 18, 2022 at 11:19 PM #38741Pat Matt
ParticipantThanks Arno. Very much appreciated.
October 19, 2022 at 12:23 AM #38742Pat Matt
ParticipantSo the solution for me ended up not needing the code snippets pro plugin or to add any .css.
It was quite a simple fix actually. My id field looked like this: faq:_answer, which was from my label being FAQ: Answer. Apparently, the colon and the underscore causes an issue like this. I changed the id to faqanswer. No special characters and no spaces and it's fixed! Hope this helps someone else out there!
October 19, 2022 at 12:59 AM #38744Arno
ParticipantThanks for sharing that Pat.
Question to Meta Box support: does the above info perhaps help you to solve this? I only use underscores as a "special" character in field IDs. I assume that's not causing this as it's common practise.
-
AuthorPosts
- You must be logged in to reply to this topic.