Html editor in description field not working.
This topic contains 15 replies, has 4 voices, and was last updated by Kiran 4 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 15, 2020 at 5:32 am #530431
Hi guys,
For some reason the html editor in the description field is not working, it only works in troubleshoot. It was working fine until the most recent update.
I deactivated and activated every plugin, changed theme, and it´s still not working.
Could you please take a look, and see if you can help?
Thank you!
February 15, 2020 at 5:34 am #530433This reply has been marked as private.February 15, 2020 at 8:00 am #530446Please see:
https://wpgeodirectory.com/docs-v2/places/custom/#advancedIf that doesn’t fix the issue please let us know more about the situation.
February 18, 2020 at 4:24 pm #531023Hi Alex,
Let me explain, depending on the package the html editor is enabled or not for business owners. Free package, for example is not enabled.
But the problem is in the admin area, I should be able to edit with HTML, even if it´s a free listing, so that I can work on my SEO.
So I´d like the users on free listings NOT to use the HTML editor, but enable it for the admin. That´s the way it was working before the last update.
Thanks
February 19, 2020 at 7:52 pm #531264I see, I will ask the developers to look into that.
February 20, 2020 at 6:32 am #531343Hi Tania,
I checked with choosing following packages on front-end add listing and as expected description field shows WITHOUT HTML editor. Following packages has HTML editor is disabled from settings.
– GRATIS
– BASICO LUGARES
– EMPRENDE LUGARESI checked with choosing following packages and as expected description field shows WITH HTML editor. Following packages has HTML editor is NOT disabled from settings.
– PRO LUGARES
– PREMIUM LUGARESDo you want HTML editor for description field for admin user even editor is disabled from package settings?
Let us know.
Regards,
KiranFebruary 21, 2020 at 6:35 am #531519Thank you Alex and Kiran,
Exactly, for admin user, HTML editor should be enabled, even if the package is disabled for the user in font-end.
Thanks
Tania
February 21, 2020 at 6:55 am #531524Hi Tania,
Try following PHP snippet.
/** * Always enable HTML editor to description field for admin user. */ function gd_snippet_allow_html_editor_to_admin( $allow, $field ) { if ( ! empty( $field['name'] ) && $field['name'] == 'post_content' && current_user_can( 'manage_options' ) ) { $allow = true; } return $allow; } add_filter( 'geodir_custom_field_allow_html_editor', 'gd_snippet_allow_html_editor_to_admin', 99, 2 ); function gd_snippet_pricing_allow_html_editor_to_admin( $disable_editor, $package_id ) { if ( $disable_editor && current_user_can( 'manage_options' ) ) { $disable_editor = false; } return $disable_editor; } add_filter( 'geodir_pricing_disable_html_editor', 'gd_snippet_pricing_allow_html_editor_to_admin', 20, 2 );
Thanks,
KiranMarch 1, 2020 at 2:15 am #532965Hi Kiran,
It didn´t work 🙁
Could you check it out again?
Thank you!
March 1, 2020 at 12:23 pm #532980This reply has been marked as private.March 26, 2020 at 12:05 am #536825This reply has been marked as private.March 26, 2020 at 4:57 am #536836Hello Tania,
In backend content field is not restricted to use HTML editor for content field. This is default field for post content and it available for all post types. If HTML added by admin then it will display it HTML tags at front-end.
Thanks,
KiranMarch 27, 2020 at 7:38 pm #537157Thank you Kiran, it´s not working, that´s the problem. I can see it, but changes are not made as shown in the images I sent. Once I publish or update the listing all changes made in html are not saved.
Hope you can help
Thank you
Tania
March 30, 2020 at 12:17 pm #537408Hello Tania,
Please provide us FTP credentials so i can check there and also provide us listing url to check.
Kiran
April 26, 2020 at 10:42 pm #542684This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket