WYSIWYG editor for "description" field?

rob's Avatar

rob

01 Nov, 2018 11:42 AM

Any way to turn this field into a WYSIWYG editor instead of needing to enter HTML manually? I don't see support for it in the code... maybe you can add a filter so we can add our own "field" types?

Rob

  1. Support Staff 1 Posted by Dmitry Semenov on 01 Nov, 2018 04:20 PM

    Dmitry Semenov's Avatar

    Hello,

    For now, there is no option to add WYSIWYG editor to the description text.

    If you're using slider just for image-based galleries, you may override default [gallery] shortcode http://help.dimsemenov.com/kb/wordpress-royalslider-tutorials/wp-cr... ACF plugin might be able to add WYSIWYG to WordPress image attachments fields.

  2. 2 Posted by rob on 02 Nov, 2018 02:32 PM

    rob's Avatar

    Thanks. Solved this by including a lightweight JavaScript WYSIWYG editor that can attach itself to <textareas> and did this:

    <script>
        jQuery(document).ready(function() {
          jQuery('textarea#slides-description').trumbowyg({
            resetCss: true,
            autogrowOnEnter: true,
            btns: [['strong', 'em',]]
          });
        });
      </script>
    

    Works fine! And our editors don't need to leave the page now.

    Rob

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Screen_Shot_2018-11-01_at_07.41.29.png 118 KB
  • Screen_Shot_2018-11-01_at_07.41.11.png 53.2 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac