Hello, we need to allow our admins to do basic html editing in textarea fields for some content. The button wasn't in Classic Editor so we used WP functions to add it and it works fine, but it doesn't show in the wpdatatables tinymce text editor. They don't need to be able to sort by the textarea fields, only edit them occasionally. How can we get wpdatatables' text editor to add the source button?
I'm sorry, but I don't quite understand what you're asking.
We have the HTML editor, if that's what you're referring to. We are using WordPress' TinyMCE editor for that. Simply go to column settings, under editing/Editor Input Type select HTML editor. Is that what you were looking for?
No, I want to view the underlying 'source code'. For instance, if the user formatted text in a bulleted list, I need to be able to see and edit the <ul><li>item 1</li><li>item 2</li><ul> etc. In a regular wordpress post you can switch to 'Text' mode. But there is also usually a button in the editor toolbar to view the code.
We would be able to help you with this, but you will need to re-apply the customization every time our plugin updates, and every time WordPress updates. If you're alright with this, please let me know, and I'll send you the code.
Great! Yes, please do send the code. We are using wpDataTables and Wordpress as a content management system for mobile apps content. If even one character is wrong the app might not function correctly. So I don't mind re-applying during updates. Thanks!
After that, you need to create a "code" folder in ../wp-includes/js/tinymce/plugins/ and add the two files attached to my response. Just make sure to unzip the folder, and paste the two files into the newly created "code" folder.
Hi Aleksandar, Thanks much, it works great! Also, this solved a flickering problem I was getting with the HTML editor, must have been some kind of conflict. Very, very much appreciated. I am liking wpdatatables quite a lot.
I have started using wpdatables with Gravity Forms, and am having problems again with the rich text editor. Wpdatatables is apparently stripping out the GF tinymce editor and replacing it with an instance of tinymce with different options. But not the code <> option which I need. Is there any way to use the rich text editor from Gravity? Although I haven't changed anything on my end, and I put in your last fix, the code <> button has disappeared again from my editor, although it is in the backend when I edit a page or post. Is there something else I need to do? thanks.
So I was wrong about this - I had the wrong form on my page - one that was not a Gravity table. My apologies. But I would like to know how to customize the mce container for Gravity forms and add the 'code' button. Also, for non-gravity tables, the code button no longer shows, i was upgraded to wp 5.3.2 automatically, that might be why.
If you updated WordPress, it could be that the files were replaced, so you'll need to go in again and add them again.
If it still doesn't work after that, please let me know. I don't know where you would need to add the data for it to work on Gravity Forms, unfortunately. You may want to reach out to their help desk, and perhaps they can provide some help with this.
Thanks for getting back to me. When I add the gravity form to a page but not via a wpdatatable it looks fine on the front end. It's only when trying to edit or add a new entry from wpdatables that tinymce is reloaded to a very basic configuration. I don't think this is caused by gravity forms. I've tried turning off all other plugins, have changed my theme to 2019, force cleared my cache, but no luck. I also have filters adding the code button in my functions which works fine in gravity forms front and backend, but not with wpdatatables. Please see attached screenshots. Really appreciate your help on this!
Can you please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.
Every text area has the same class which you included in the Custom CSS. Have you used medium richtext editor for every field in the form? On which form does it not show, since we were unable to replicate the issue?
We did finally get it to work. We didn't have all richtext fields set to medium (using the gravity forms field size settings) so the css had to be slightly different. However, is there a reason the source code cannot be shown in a modal window over the wpdatatables edit window as it works with gravity forms without wpdatatables? E.g.: you click on on the <> (code) button, and a dialogue opens in a separate window to allow you to view the source. Because we can have several text areas on a form, a dialogue would be much better for the end users rather than expanding the form for each rich text area, which makes the form long and unwieldy. Thank you.
Yeah, actually, since inline formatting is being used. Plugins for buttons can be initialized, like in our HTML editor (the code in the add-on would have to be updated, though), and for the code - that plugin would have to be addded in TinyMCE editor folder in wp-includes, since it is not there by default.
wpDataTables initializes TinyMCE over JavaScript, not through Back-end (PHP).
Hi Aleksandar, not sure if I get this. I already have the code plugin in wp-includes, which seems to do the trick for gravity forms. So is this a different plugin I need to add to get the modal window to pop up with source code? If so, what is the name of it?
This is somehow related, so I'll just ask here instead of creating a new post. It's a small issue anyway.
I'm just wondering if there's an option to set the height (or min-height) of tinymce editor textarea somehow? By default it's pretty small, and I'd just like to make it bigger. Also, I notited there's some kind of tinymce auto-resize plugin available which sets the edit area based on current content. Is this also available maybe in wpdatatables?
If you're looking at the editor in a modal, it fits the modal size, so there's no way to change that.
The modal also differs in structure and look depending on the skin you choose for wpDataTables. You can change the skin in main settings, and see how the modal changes.
We cannot guarantee that third party plugins will be able to do this, since there can always be some conflicts due to the nature of WordPress.
Hello, we need to allow our admins to do basic html editing in textarea fields for some content. The button wasn't in Classic Editor so we used WP functions to add it and it works fine, but it doesn't show in the wpdatatables tinymce text editor. They don't need to be able to sort by the textarea fields, only edit them occasionally. How can we get wpdatatables' text editor to add the source button?
Thank you.
Hello Jocelyn.
I'm sorry, but I don't quite understand what you're asking.
We have the HTML editor, if that's what you're referring to. We are using WordPress' TinyMCE editor for that. Simply go to column settings, under editing/Editor Input Type select HTML editor. Is that what you were looking for?
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
No, I want to view the underlying 'source code'. For instance, if the user formatted text in a bulleted list, I need to be able to see and edit the <ul><li>item 1</li><li>item 2</li><ul> etc. In a regular wordpress post you can switch to 'Text' mode. But there is also usually a button in the editor toolbar to view the code.
Does this make sense?
thank you.
Hey Jocelyn.
Sure, thanks for the explanation.
We would be able to help you with this, but you will need to re-apply the customization every time our plugin updates, and every time WordPress updates. If you're alright with this, please let me know, and I'll send you the code.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
Great! Yes, please do send the code. We are using wpDataTables and Wordpress as a content management system for mobile apps content. If even one character is wrong the app might not function correctly. So I don't mind re-applying during updates. Thanks!
Hello Jocelyn.
Sure, here's what you need to do.
In this file ../wp-content/plugins/wpdatatables/assets/js/wpdatatables/wpdatatables.js you need to add "code" to strings on these lines:
So, instead of these:
Add "code" at the end, so it looks like this:
After that, you need to create a "code" folder in ../wp-includes/js/tinymce/plugins/ and add the two files attached to my response. Just make sure to unzip the folder, and paste the two files into the newly created "code" folder.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar, Thanks much, it works great! Also, this solved a flickering problem I was getting with the HTML editor, must have been some kind of conflict. Very, very much appreciated. I am liking wpdatatables quite a lot.
Hi Guys,
I have started using wpdatables with Gravity Forms, and am having problems again with the rich text editor. Wpdatatables is apparently stripping out the GF tinymce editor and replacing it with an instance of tinymce with different options. But not the code <> option which I need. Is there any way to use the rich text editor from Gravity? Although I haven't changed anything on my end, and I put in your last fix, the code <> button has disappeared again from my editor, although it is in the backend when I edit a page or post. Is there something else I need to do? thanks.
Hi Guys,
So I was wrong about this - I had the wrong form on my page - one that was not a Gravity table. My apologies. But I would like to know how to customize the mce container for Gravity forms and add the 'code' button. Also, for non-gravity tables, the code button no longer shows, i was upgraded to wp 5.3.2 automatically, that might be why.
Thanks.
Hello again Jocelyn
If you updated WordPress, it could be that the files were replaced, so you'll need to go in again and add them again.
If it still doesn't work after that, please let me know. I don't know where you would need to add the data for it to work on Gravity Forms, unfortunately. You may want to reach out to their help desk, and perhaps they can provide some help with this.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
Thanks for getting back to me. When I add the gravity form to a page but not via a wpdatatable it looks fine on the front end. It's only when trying to edit or add a new entry from wpdatables that tinymce is reloaded to a very basic configuration. I don't think this is caused by gravity forms. I've tried turning off all other plugins, have changed my theme to 2019, force cleared my cache, but no luck. I also have filters adding the code button in my functions which works fine in gravity forms front and backend, but not with wpdatatables. Please see attached screenshots. Really appreciate your help on this!
Here's the other screenshot
I see Jocelyn
Can you please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Jocelyn
Every text area has the same class which you included in the Custom CSS. Have you used medium richtext editor for every field in the form? On which form does it not show, since we were unable to replicate the issue?
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Aleksadar,
We did finally get it to work. We didn't have all richtext fields set to medium (using the gravity forms field size settings) so the css had to be slightly different. However, is there a reason the source code cannot be shown in a modal window over the wpdatatables edit window as it works with gravity forms without wpdatatables? E.g.: you click on on the <> (code) button, and a dialogue opens in a separate window to allow you to view the source. Because we can have several text areas on a form, a dialogue would be much better for the end users rather than expanding the form for each rich text area, which makes the form long and unwieldy. Thank you.
Hi again Jocelyn
Yeah, actually, since inline formatting is being used. Plugins for buttons can be initialized, like in our HTML editor (the code in the add-on would have to be updated, though), and for the code - that plugin would have to be addded in TinyMCE editor folder in wp-includes, since it is not there by default.
wpDataTables initializes TinyMCE over JavaScript, not through Back-end (PHP).
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar, not sure if I get this. I already have the code plugin in wp-includes, which seems to do the trick for gravity forms. So is this a different plugin I need to add to get the modal window to pop up with source code? If so, what is the name of it?
thanks much!
Hi again Jocelyn
The file currently looks like this:
So, you should modify it to look like this:
So, just change this:
To this:
And that's it.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
This is somehow related, so I'll just ask here instead of creating a new post. It's a small issue anyway.
I'm just wondering if there's an option to set the height (or min-height) of tinymce editor textarea somehow? By default it's pretty small, and I'd just like to make it bigger. Also, I notited there's some kind of tinymce auto-resize plugin available which sets the edit area based on current content. Is this also available maybe in wpdatatables?
Thank you for everything, Tomaz.
Hi again Tomaz
If you're looking at the editor in a modal, it fits the modal size, so there's no way to change that.
The modal also differs in structure and look depending on the skin you choose for wpDataTables. You can change the skin in main settings, and see how the modal changes.
We cannot guarantee that third party plugins will be able to do this, since there can always be some conflicts due to the nature of WordPress.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
Thank you for figuring out the tinymce modal. Sorry it took so long to test, but it Works Great! Very, very much appreciated!
You're welcome, Jocelyn
Glad I could help.
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables