Page 1 of 1

multiple lines of text without editor option

Posted: 27 May 2021
by keusch
Dear all,
we're using a multiple lines of text field to allow the data entry as HTML table. The content is copied by a Javascript to avoid that the users can change the table (e.g. number of rows or columns). In the new and edit form although the filed is set to read-only the user gets an additionale layout editor menu displayed:
menu.png
menu.png (24.9 KiB) Viewed 13548 times
Is there a way to remove also that menu so that only the content of the field is visible but could not changed by the user?
best regards
Christian

Re: multiple lines of text without editor option

Posted: 27 May 2021
by Nikita Kurguzov
Dear keusch,
You can try the following CSS code, just add it to CSS editor and it will hide this panel and the Insert panel:

Code: Select all

[id^="Ribbon.EditingTools.CPInsert"],
[id^="Ribbon.EditingTools.CPEditTab"] {
  display: none;
}
 

Re: multiple lines of text without editor option

Posted: 27 May 2021
by keusch
Thanks for the fast reply, but the code enables another editor view for table layout only.
best regards
Christian

Re: multiple lines of text without editor option

Posted: 27 May 2021
by Nikita Kurguzov
Dear Christian,
Can you clarify what you mean? Maybe a screenshot or two would help.

Re: multiple lines of text without editor option

Posted: 27 May 2021
by keusch
Thanks found it: needed to remove Table.Layout and Table.Design
- now it works as desired

Code: Select all


[id^="Ribbon.EditingTools.CPInsert"],
[id^="Ribbon.EditingTools.CPEditTab"], 
[id^="Ribbon.Table.Layout"],
[id^="Ribbon.Table.Design"]
{
  display: none;
}