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

How to make text mode #166

Open
ina6ra opened this issue Jun 14, 2018 · 1 comment
Open

How to make text mode #166

ina6ra opened this issue Jun 14, 2018 · 1 comment

Comments

@ina6ra
Copy link

ina6ra commented Jun 14, 2018

I would like to enter text mode instead of visual-editor.
I tried the following method, but I could not enable text mode.

add_filter('tailor_editor_settings', function($editor_settings) {
  $editor_settings['teeny'] = true;
  $editor_settings['tinymce'] = false;
  return $editor_settings;
});
add_filter('wp_default_editor', function() {
  return 'html';
});

The wordpress version is 4.9.6,
And the theme used is Twenty Seventeen.

How do I enable text mode?
Thanks.

@ina6ra
Copy link
Author

ina6ra commented Jun 15, 2018

I resolved myself.

It was exactly the same as the following problem.

It solve it by using text-widget plugin made by other people.

When using the Classic Text widget, unnecessary line breaks are inserted at the end.
If you do not like it, you can use the Enhanced Text Widget to select Do not output before/after_widget/title option and enter it without line breaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant