Home Forums Plugin Support WP User Frontend Pro Embed code editor

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Oritro Ahmed 5 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20786

    Irinel
    Member

    Hi,

    On free version on the plugin, I am able to have both text editor and code editor.

    How I can enable code editor on Pro version?

    I want users to add their own html code (add gallery, embed video code) etc .

    Is it a way to enable that? (this is available on free version).

    Also, I am not able to create galleries and link upload picture button should go to media gallery (not to simple import function).

    thanks

    Irine

    #20906

    Oritro Ahmed
    Spectator
    Post count: 155

    Hello Irinel,

    You can't use code editor by default. Its been disabled in WPUF. But, you sure can enable it by modifying WPUF core file. But thats not recommended, Because if there is a new update, You will lose the modification.

    Go to WPROOT/wp-content/plugins/wp-user-frontend-pro/class and fine a file named render-form.php. Open it with a Text Editor, And Go to line 729. You will see a codeblock like this,

    wp_editor( $value, $attr['name'], array('editor_height' => $attr['rows'], 'quicktags' => false, 'media_buttons' => false, 'editor_class' => $req_class) );

    Change 'quicktags' => false to 'quicktags' => true. If your are using Rich Text area, You will have HTML edit for you.

    If you are Using Tenny Rich text Area, just go to line 733 and do the same.

    That should solve your problem.

    About The other problem, We didn't Quite understand what did you mean by this line “and link upload picture button should go to media gallery (not to simple import function).”.

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

The topic ‘Embed code editor’ is closed to new replies.