Home Forums Plugin Support WP User Frontend Pro How to Add "Visual/Text" Tabs to MCE Editor in a WPUF Form

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  pmanofsky 5 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6058

    pmanofsky
    Participant
    Post count: 1

    Hi weDevs,

    I like to use the rich text editor when it comes to editing and creating posts, but almost all of the time it is very useful to have the option of seeing it in plain text.

    I want to be able to make my form editor have the same tabs (“visual” and “text”) that are on the editor within the WordPress backend for post creation.

    I have been able to achieve this by editing the plugin's php code, finding the place where the code calls on “wp_editor();” and changing the settings to include the visual and plaintext tabs. However, the problem is that I have to do this every time I update WPUF Pro.

    Is there a way to do this using Action Hook's? I am not very familiar with them, so if it is possible could you please walk me through it? I am pretty good at programming, I just haven't studied much about WordPress plugin development (which I probably should).

    Thank you so much for all the help,
    Phil Manofsky

    #6066

    Tareq Hasan
    Keymaster
    Post count: 2831

    Sadly there isn't any filter and action to modify the arguments in wp_editor function in WPUF.

    But using the action hook tutorial, you should be able to insert your own post body instead of the plugin's one and solve your problem. You don't to follow the step 3, just give the textarea name to post_content

    #6104

    pmanofsky
    Participant
    Post count: 1

    Thanks Tareq! I got it to work. Hopefully it stays that way! I couldn't have done it without your help. I really appreciate it. ๐Ÿ˜€
    – Phil

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘How to Add "Visual/Text" Tabs to MCE Editor in a WPUF Form’ is closed to new replies.