Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

readOnlySettings for custom RTE not working

(0) ShareShare
ReportReport
Posted on by 10

We're looking to set the default 'Description' field on the Case/Incident table to use the Rich Text component. As part of that, we need the field to be read-only and to be limited in height. This article is what I used to investigate how it works:

docs.microsoft.com/.../rich-text-editor-control

So following the above, I've created a new .js webresource using the RTEGlobalConfiguration.json as the base and applied the new resource to the Description field on the Case form. Most other settings work without issue but the readOnlySettings seems to get ignored.

This is what I'm attempting to set it to:

    "readOnlySettings": {
        "height:": 380
    },

And here's the full webresource if it's useful:

{
	"defaultSupportedProps": {
		"allowedIframeDomains": [],
		"autoGrow_onStartup": false,
		"basicEntities": true,
		"browserContextMenuOnCtrl": true,
		"copyFormatting_allowRules": true,
		"customConfig": "",
		"dialog_backgroundCoverColor": "black",
		"disableNativeSpellChecker": false,
		"enterMode": 3,
		"extraPlugins": "accessibilityhelp,autolink,basicstyles,bidi,blockquote,button,collapser,colorbutton,colordialog,confighelper,contextmenu,copyformatting,dialog,editorplaceholder,filetools,find,floatpanel,font,iframerestrictor,indentblock,justify,panel,panelbutton,pastefromword,quicktable,selectall,stickystyles,superimage,tableresize,tableselection,tabletools",
		"fillEmptyBlocks": true,
		"font_defaultLabel": "Segoe UI",
		"font_names": "Angsana New/'Angsana New', 'Leelawadee UI', Sathu, serif;Arial/Arial, Helvetica, sans-serif;Arial Black/'Arial Black', Arial, sans-serif;Calibri Light/'Calibri Light', 'Helvetica Light', sans-serif;Calibri/Calibri, Helvetica, sans-serif;Cambria/Cambria, Georgia, serif;Candara/Candara, Optima, sans-serif;Century Gothic/'Century Gothic', sans-serif;Comic Sans MS/'Comic Sans MS';Consolas/Consolas, Courier, monospace;Constantia/Constantia, 'Hoefler Text', serif;Corbel/Corbel, Skia, sans-serif;Cordia New/'Cordia New', 'Leelawadee UI', Silom, sans-serif;Courier New/'Courier New';DaunPenh/DaunPenh, 'Leelawadee UI', 'Khmer MN', sans-serif;Franklin Gothic Book/'Franklin Gothic Book', 'Avenir Next Condensed', sans-serif;Franklin Gothic Demi/'Franklin Gothic Demi', 'Avenir Next Condensed Demi Bold', sans-serif;Franklin Gothic Medium/'Franklin Gothic Medium', 'Avenir Next Condensed Medium', sans-serif;Garamond/Garamond, Georgia, serif;Gautami/Gautami, 'Nirmala UI', 'Telugu MN', sans-serif;Georgia/Georgia, serif;Impact/Impact, Charcoal, sans-serif;Iskoola Pota/'Iskoola Pota', 'Nirmala UI', 'Sinhala MN', sans-serif;Kalinga/Kalinga, 'Nirmala UI', 'Oriya MN', sans-serif;Kartika/Kartika, 'Nirmala UI', 'Malayalam MN', sans-serif;Latha/Latha, 'Nirmala UI', 'Tamil MN', sans-serif;Leelawadee UI/'Leelawadee UI', Thonburi, sans-serif;Lucida Console/'Lucida Console', Monaco, monospace;Lucida Handwriting/'Lucida Handwriting', 'Apple Chancery', cursive;Lucida Sans Unicode/'Lucida Sans Unicode';Mangal/Mangal, 'Nirmala UI', 'Devanagari Sangam MN', sans-serif;Nirmala UI/'Nirmala UI', sans-serif;Nyala/Nyala, Kefa, sans-serif;Palatino Linotype/'Palatino Linotype', 'Book Antiqua', Palatino, serif;Raavi/Raavi, 'Nirmala UI', 'Gurmukhi MN', sans-serif;Segoe UI/'Segoe UI', 'Helvetica Neue', sans-serif;Shruti/Shruti, 'Nirmala UI', 'Gujarati Sangam MN', sans-serif;Sitka Heading/'Sitka Heading', Cochin, serif;Sitka Text/'Sitka Text', Cochin, serif;Sylfaen/Sylfaen, Mshtakan, Menlo, serif;TW Cen MT/'TW Cen MT', 'Century Gothic', sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/'Times New Roman', Times, serif;Times/Times, 'Times New Roman', serif;Trebuchet MS/'Trebuchet MS';Tunga/Tunga, 'Nirmala UI', 'Kannada MN', sans-serif;Verdana/Verdana, Geneva, sans-serif;Vrinda/Vrinda, 'Nirmala UI', 'Bangla MN', sans-serif;メイリオ/Meiryo, メイリオ, 'Hiragino Sans', sans-serif;仿宋/FangSong, 仿宋, STFangsong, serif;微軟正黑體/'Microsoft JhengHei', 微軟正黑體, 'Apple LiGothic', sans-serif;微软雅黑/'Microsoft YaHei', 微软雅黑, STHeiti, sans-serif;新宋体/NSimSun, 新宋体, SimSun, 宋体, SimSun-ExtB, 宋体-ExtB, STSong, serif;新細明體/PMingLiU, 新細明體, PMingLiU-ExtB, 新細明體-ExtB, 'Apple LiSung', serif;楷体/KaiTi, 楷体, STKaiti, serif;標楷體/DFKai-SB, 標楷體, BiauKai, serif;游ゴシック/'Yu Gothic', 游ゴシック, YuGothic, sans-serif;游明朝/'Yu Mincho', 游明朝, YuMincho, serif;隶书/SimLi, 隶书, 'Baoli SC', serif;黑体/SimHei, 黑体, STHeiti, sans-serif;굴림/Gulim, 굴림, 'Nanum Gothic', sans-serif;궁서/Gungsuh, 궁서, GungSeo, serif;돋움/Dotum, 돋움, AppleGothic, sans-serif;맑은 고딕/'Malgun Gothic', '맑은 고딕', AppleGothic, sans-serif;바탕/Batang, 바탕, AppleMyungjo, serif;바탕체/BatangChe, 바탕체, AppleMyungjo, serif;MS Pゴシック/'MS PGothic', 'MS Pゴシック', 'MS Gothic', 'MS ゴシック', 'Hiragino Kaku Gothic ProN', sans-serif;MS P明朝/'MS PMincho', 'MS P明朝', 'MS Mincho', 'MS 明朝', 'Hiragino Mincho ProN', serif",
		"fontSize_defaultLabel": "9",
		"fontSize_sizes": "8/8pt;9/9pt;10/10pt;11/11pt;12/12pt;14/14pt;16/16pt;18/18pt;20/20pt;22/22pt;24/24pt;26/26pt;28/28pt;36/36pt;48/48pt;72/72pt;",
		"height": 380,
		"keystrokes": [],
		"linkDefaultProtocol": "https://",
		"listStylePosition": "inside",
		"pasteAzureBlobImageAsBase64": false,
		"qtCellBorderColor": "rgb(171, 171, 171)",
		"qtCellBorderStyle": "solid",
		"qtCellBorderWidth": "1px",
		"qtCellPadding": "1",
		"qtCellSpacing": "0",
		"qtCellWith": "120px",
		"pasteFilter": null,
		"qtColumns": 8,
		"qtRows": 6,
		"qtStyle": {
			"border-collapse": "collapse",
			"font-size": "9pt"
		},
		"removeDialogTabs": "flash:Upload;link:upload",
		"removePlugins": "a11yhelp,autogrow,codemirror,magicline,scayt,showborders",
		"skin": "superowa",
		"stickyStyle": {
			"font-size": "9pt",
			"font-family": "'Segoe UI','Helvetica Neue',sans-serif"
		},
		"stickyStyles_defaultTag": "div",
		"superimageImageMaxSize": 5,
		"toolbar": [],
		"toolbarcollapser_enableResizer": true,
		"toolbarLocation": "bottom",
		"uploadRecordId": []
	},
	"attachmentEntity": {
		"name": "msdyn_richtextfiles",
		"fileAttributeName": "msdyn_fileblob"
	},
	"disableContentSanitization": true,
	"disableDefaultImageProcessing": false,
	"disableImages": false,
	"imageEntity": {
		"imageEntityName": "msdyn_richtextfiles",
		"imageFileAttributeName": "msdyn_imageblob"
	},
    "readOnlySettings": {
        "height:": 380
    },
	"sanitizerAllowlist": {
		"attributes": [],
		"cssProperties": [],
		"domains": [],
		"protocols": [],
		"tags": []
	},
	"showAsTabControl": true,
	"showFullScreenExpander": true,
	"showHtml": false,
	"showPreview": false,
	"showPreviewHeaderWarning": false
}


Any help would be greatly appreciated!

  • JVicente Profile Picture
    JVicente 10 on at
    RE: readOnlySettings for custom RTE not working

    Hi Kapil,

    Thanks for the suggestion. I'd prefer to use Microsoft's recommended implementation, to be honest, but will investigate this if there's a bug with the MS option.

  • KK-365 Profile Picture
    KK-365 1,010 on at
    RE: readOnlySettings for custom RTE not working

    Hello,

    Check the below blog may help.

    softnovation.wordpress.com/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans