multiple lines of text without editor option

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
keusch
Posts: 11
Joined: Mon Apr 01, 2019

27 May 2021

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 13520 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

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

27 May 2021

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;
}
 
Cheers

keusch
Posts: 11
Joined: Mon Apr 01, 2019

27 May 2021

Thanks for the fast reply, but the code enables another editor view for table layout only.
best regards
Christian

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

27 May 2021

Dear Christian,
Can you clarify what you mean? Maybe a screenshot or two would help.
Cheers

keusch
Posts: 11
Joined: Mon Apr 01, 2019

27 May 2021

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;
}


Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests