Text mode in editor?
Quote from DavidGriswoldHH on August 1, 2017, 9:52 pmHi,
I have a lot of advanced users who already use Wordpress and would like to be able to edit their code directly, just as you can with the “Text” tab in the editor for posting. Is there a way to get that functionality in asgaros? It’s basically the only thing keeping me from switching from wp-foro at the moment.
Hi,
I have a lot of advanced users who already use Wordpress and would like to be able to edit their code directly, just as you can with the “Text” tab in the editor for posting. Is there a way to get that functionality in asgaros? It’s basically the only thing keeping me from switching from wp-foro at the moment.
Quote from Yworld on August 1, 2017, 10:14 pmHi DavidGriswoldH,
you have to add to your themes functions.php:
function change_editor_settings($settings) { if (is_super_admin()) { $settings['teeny'] = false; $settings['quicktags'] = true; return $settings; } } add_filter('asgarosforum_filter_editor_settings', 'change_editor_settings');
Hi DavidGriswoldH,
you have to add to your themes functions.php:
function change_editor_settings($settings) { if (is_super_admin()) { $settings['teeny'] = false; $settings['quicktags'] = true; return $settings; } } add_filter('asgarosforum_filter_editor_settings', 'change_editor_settings');
Quote from DavidGriswoldHH on August 1, 2017, 11:38 pmThank you! Between that and adding the “Advanced MCE” plugin, this is now by far the most feature-rich forum editor I’ve found without all the difficulty of bbPress.
Thank you! Between that and adding the “Advanced MCE” plugin, this is now by far the most feature-rich forum editor I’ve found without all the difficulty of bbPress.
Quote from oneninetyeight on December 22, 2017, 3:44 amQuote from Yworld on August 1, 2017, 10:14 pmHi DavidGriswoldH,
you have to add to your themes functions.php:
function change_editor_settings($settings) { if (is_super_admin()) { $settings['teeny'] = false; $settings['quicktags'] = true; return $settings; } } add_filter('asgarosforum_filter_editor_settings', 'change_editor_settings');
- function change_editor_settings($settings) {
- if (is_super_admin()) {
- $settings[‘teeny’] = false;
- $settings[‘quicktags’] = true;
- return $settings;
- }
- }
- add_filter(‘asgarosforum_filter_editor_settings’, ‘change_editor_settings’);
function change_editor_settings($settings) { if (is_super_admin()) { $settings['teeny'] = false; $settings['quicktags'] = true; return $settings; } } add_filter('asgarosforum_filter_editor_settings', 'change_editor_settings');
Thanks for the info. To clarify, this code goes into the functions.php file of my main site theme or a asgaros specific custom theme?
Also the formatting bar in my installation looks different from the one here, I can’t change the style preset. Here’s a screenshot. Any idea what’s causing this?
Quote from Yworld on August 1, 2017, 10:14 pmHi DavidGriswoldH,
you have to add to your themes functions.php:
function change_editor_settings($settings) { if (is_super_admin()) { $settings['teeny'] = false; $settings['quicktags'] = true; return $settings; } } add_filter('asgarosforum_filter_editor_settings', 'change_editor_settings');
- function change_editor_settings($settings) {
- if (is_super_admin()) {
- $settings[‘teeny’] = false;
- $settings[‘quicktags’] = true;
- return $settings;
- }
- }
- add_filter(‘asgarosforum_filter_editor_settings’, ‘change_editor_settings’);
function change_editor_settings($settings) { if (is_super_admin()) { $settings['teeny'] = false; $settings['quicktags'] = true; return $settings; } } add_filter('asgarosforum_filter_editor_settings', 'change_editor_settings');
Thanks for the info. To clarify, this code goes into the functions.php file of my main site theme or a asgaros specific custom theme?
Also the formatting bar in my installation looks different from the one here, I can’t change the style preset. Here’s a screenshot. Any idea what’s causing this?
Quote from oneninetyeight on December 22, 2017, 7:42 amThanks!
Thanks!
Quote from Asgaros on December 22, 2017, 8:11 pmAlso the formatting bar in my installation looks different from the one here, I can’t change the style preset. Here’s a screenshot. Any idea what’s causing this?
Unchecking the “Use minimalistic editor”-checkbox in the options should solve this! 🙂
Also the formatting bar in my installation looks different from the one here, I can’t change the style preset. Here’s a screenshot. Any idea what’s causing this?
Unchecking the “Use minimalistic editor”-checkbox in the options should solve this! 🙂
Quote from yellowfish on January 3, 2019, 3:16 pm@Yworld ‘s code works fine. But one silly beginners question – will the functions.php change be gone after the next theme update?
@Yworld ‘s code works fine. But one silly beginners question – will the functions.php change be gone after the next theme update?
Quote from Asgaros on January 3, 2019, 6:55 pmHello @yellowfish
Yes, theme-updates usually replaces your functions.php file so a backup is necessary.
As an alternative you can create a custom plugin-file which contains your code-snippets. In this case all your snippets are independent of other plugins or themes. You can check out this website for more information:
https://wplift.com/custom-plugin
Hello @yellowfish
Yes, theme-updates usually replaces your functions.php file so a backup is necessary.
As an alternative you can create a custom plugin-file which contains your code-snippets. In this case all your snippets are independent of other plugins or themes. You can check out this website for more information:
How To Create A Custom WordPress Plugin (And When To Use It Over Functions.php)