Okay
  Public Ticket #3377959
Rich Text Editor
Closed

Comments

  • Brenda started the conversation

    When my Gravity Form has the Rich Text Editor enabled, on the wpDataTables side, when adding or editing a record I cannot switch back and forth between 'Visual' and 'Text' on that column/field.  Can you please help?

  • Brenda replied

    Actually, if the text editor was the same as it is when selecting 'HTML editor' as the Editor input type (which I'm not able to do with Gravity Forms wpDataTable), that would be sufficient. 

    You can see in the attached screenshots, that the Gravity Forms datatable text editor has only a few of the buttons/options... whereas the HTML editor has everything we are looking for.  How can we made the Gravity Forms editor match the HTML editor?

    Attached files:  Screenshot 2023-05-24 180226 - Gravity Forms DT w Rich Text Editor.png
      Screenshot 2023-05-24 180026 - HTML Editor input type.png

  •  1,846
    Miloš replied

    Hi, Brenda.

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    I am sorry to disappoint you, but at the moment, these are some of the limitations we currently have for the integration with Gravity Forms.

    We have pointed out the limitations on this documentation.

    8102634184.png


    I will just point out the two which are relevant for editing :

    • Unavailable options – Because we are using Gravity’s own forms for editing functionalities, some features are unavailable in both table and column settings. These options are grayed out and disabled.
    • Choosing editor input type – This falls under the first limitation. It is not possible to choose the editor input type because we are rendering the Gravity form in a pop-up edit modal

    If you wish to see an improvement on this,

    please feel free to search on our suggestions page

     to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there,  and as more people vote, the feature will move higher on the priority list.

    You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Brenda replied

    Gravity Forms certainly does have a more robust editor but what I am referring to is not using gravity forms 'own forms' - I was able to get the HTML Editor input type desired by making the following change to your code: 

    **********************************************************

    at line 103 of file /wp-content/plugins/wdt-gravity-integration/assets/js/gf_editing.js

    change this:
               if (modalBody.find('.wp-editor-area')) {
                    modalBody.find('.wp-editor-area').each(function() {
                        tinymce.execCommand('mceRemoveEditor', true, $(this).attr('id'));
                        tinymce.init({
                            selector: '#' + $(this).attr('id'),
                            menubar: false
                        });
                    });
                }

    to this:
               if (modalBody.find('.wp-editor-area')) {
                    modalBody.find('.wp-editor-area').each(function() {
                        tinymce.execCommand('mceRemoveEditor', true, $(this).attr('id'));
                        tinymce.init({
                            selector: '#' + $(this).attr('id'),
                            menubar: false,
                                            plugins: 'link image media lists hr colorpicker fullscreen textcolor code',
                                            toolbar: 'undo redo formatselect bold italic underline strikethrough subscript superscript | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent blockquote | hr fullscreen | link unlink image | forecolor backcolor removeformat | code'
                        });
                    });
                }

    **********************************************************

    So seems to me this could easily be made standard in the plugin (as this would get overwritten when the plugin is updated).

  •  1,846
    Miloš replied

    Hi, Brenda.

    Thank you very much for sharing this code workaround with us.

    I am passing it to our developers, they will test this and they will do their best to add this to the Plugin's Core in one of the future updates.

    Until they add it, as you correctly pointed out, this code edit needs to be done at each Update.

    I can't say an exact ETA, but

    you can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    Thanks again for this great suggestion.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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