Dynamics 365 Rich text editor for Unified Interface / Based on PowerApps component framework, React and quill
Please note: since October, Microsoft rolled out "Microsoft Dynamics 365 – Release Wave 2 2020" including the brand new "Rich Text Editer Control". I will keep this Repository public for maintainance reasons, but you should consider using the new control included in D365.
Rich text editor control for Dynamics 365 Unified Interface and Microsoft Power Apps.
This control is based on React 16.x, TypeScript, Quill-react and Power Apps Component Framework 1.2.
The rich text editor can be used as multi line text control in Dynamics 365 Unified Interface (not compatible with classic ui!)
- React 16.x
- TypeScript
- Quill-react
- Power Apps Component Framework
- Tested on Dynamics 365 9.1
- Install managed solution
- Publish customizing
- Add multi line text field to entity
- Change control of multi line text field to D365RichTextControl
-
Control settings: you may leave height, min-height, max-height empty, then the control will default to a 200px fixed size
-
Open form in Unified Interface
To build
- Verify required toolset (Visual Studio or Visual Studio Build Tools / Power Apps Component Framework CLI / .NET 4.6.2 SDK / MS BUILD Tools min. v15.9 (Visual Studio 2017+) / Nodejs)
- Open command prompt in project root
- npm install
- npm run build
- cd D365RichtextEditor
- md D365RichTextEditorSolution
- cd D365RichTextEditorSolution
- pac solution init --publisher-name chrisMayor --publisher-prefix cmey
- pac solution add-reference --path ..
- "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\msbuild" /t:build /restore
- Fixed read only flag / disabling of form
- Support of SetValue() in Dynamics #6 (async changes are currently really bad handled in the pcf framework, so several workarounds were necessary)
- Empty strings - in any length and also if they are mixed with html tags - are now handled as null (issue #5)
- Update your V2.0 managed solution with the default settings
Features added:
- Size adjustable, by adding parameters height, max-height, min-height in control
you may leave height, min-height, max-height empty, then the control will default to a 200px fixed size
Bugs fixed:
- Empty control doesnt return some html string instead of NULL (#5)
- Max length of text field isn't respected in control: Now the text is limited to max length (max length = plain text + HTML)
- Control doesnt support disabling (#4)
- Control doesnt behave like other controls in Dynamics (auto groth, size not adjustable) (#4)
- From V2.0 the solution is now managed to avoid issues, that further version updates are not reflected in Dynamics
- To update from V1.0 to V2.0 there are some manual steps in Dynamics necessary, because the V1.0 is unmanaged:
- Go to solutions and delete the existing D365RichTextEditor solution
- Go to your customizings and remove any reference to the existing D365RichTextEditor control (switch back to the default text editor on all fields where you use this custom control)
- Go to the default solution and open the customizings
- Go to Components/Custom Controls
- Delete the unamanged D365Richtexteditor Control
- Publish all customizations
- Install the current Solution Package zip
- The quill license and the quill-react license are preserved in git root
- Published under the MIT license
- Use at your own risk
Impressum / Imprint in German language to comply with German tele-media regulations.