Embed code editor

This topic contains 1 reply and 2 voices, and was last updated by Oritro Ahmed 9 years, 11 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
May 21, 2014 at 3:39 pm 20786
Oritro Ahmed 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
May 24, 2014 at 2:43 am 20906
Oritro Ahmed Oritro Ahmed

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 1 Posts - 1 through 1 (of 1 total)