Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - form_handler - wysiwyg #3330

Closed
Jimmi08 opened this issue Jul 28, 2018 · 3 comments
Closed

Feature request - form_handler - wysiwyg #3330

Jimmi08 opened this issue Jul 28, 2018 · 3 comments
Labels
type: enhancement An improvement or new feature request
Milestone

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Jul 28, 2018

Possibility to use wysiwyg editor for custom plugin field without setting core pref. So the rest of e107 can use bbcodes.

This way
$frm->textarea - return simple textarea
$frm->bbarea - returns bbcodes (because wysiwyg prefs is set OFF)
$frm->wysiwyg() returns tinymce regardless central setting (not changes for core, it's for plugin development).

Thanks

@CaMer0n CaMer0n added the type: enhancement An improvement or new feature request label Jul 28, 2018
@CaMer0n CaMer0n added this to the e107 2.1.9 milestone Jul 28, 2018
@CaMer0n
Copy link
Member

CaMer0n commented Jul 28, 2018

Not quite what you suggested, but similar. You can now use wysiwyg = false in the bbarea to disable the global pref.

e107::getForm()->bbarea('post',$text,'forum','_common','large', array('wysiwyg' => false));

@Jimmi08
Copy link
Contributor Author

Jimmi08 commented Jul 28, 2018

Ha, this is else better! I just didn't think you would change so much used method. Thanks.

@CaMer0n
Copy link
Member

CaMer0n commented Jul 28, 2018

You're welcome @Jimmi08 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement An improvement or new feature request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants