Enclavely / tailor

Build beautiful page layouts quickly and easily using your favourite WordPress theme.
https://www.tailorwp.com
GNU General Public License v3.0
1.05k stars 102 forks source link

How to make text mode #166

Open ina6ra opened 6 years ago

ina6ra commented 6 years ago

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 commented 6 years ago

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.