Hiding Rich Text Editor Box

  • 2
  • Question
  • Updated 3 years ago
  • Answered
Hi all,

 I'm trying to hide or remove the rich text editor box that comes up for rich text fields. I have some users with smaller resolutions and it seems to be blocking their views, textboxes, etc. Does anyone know of a way to easily hide or remove this?
Photo of Kyle Mathis

Kyle Mathis

  • 576 Points 500 badge 2x thumb

Posted 4 years ago

  • 2
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,828 Points 20k badge 2x thumb
You can override the metadata for the rich text field in skuid so that only a text box shows.   This will work if you are enabling data entry and not showing existing data.   The problem with existing data is that the text field will just show all the HTML code generated by the rich text component. 

Maybe that will work for you... 
Photo of Matt Sones

Matt Sones, Champion

  • 32,106 Points 20k badge 2x thumb
Does anyone know the jQuery selector for the formatting box? I'd like to hide it that way, rather than override the field metadata.
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,700 Points 4k badge 2x thumb
One you can use is putting it in a wrapper and then using $("#wrapperId").find("[class*=richtext]"). If you want to open the box for editing you can use the jquery dblclick() function on the selector.