sp-dev-fx-webparts/samples/react-sp-tinymce
dependabot[bot] a2291a0f39
Bump word-wrap from 1.2.3 to 1.2.4 in /samples/react-sp-tinymce
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-20 21:17:19 +00:00
..
.devcontainer Updated readme, sample.json and devcontainer 2023-07-17 17:19:37 -04:00
assets Updated readme, sample.json and devcontainer 2023-07-17 17:19:37 -04:00
config react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
src react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
teams react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
.eslintrc.js react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
.gitignore react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
.npmignore react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
.yo-rc.json react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
README.md Updated readme, sample.json and devcontainer 2023-07-17 17:19:37 -04:00
gulpfile.js react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
package-lock.json Bump word-wrap from 1.2.3 to 1.2.4 in /samples/react-sp-tinymce 2023-07-20 21:17:19 +00:00
package.json react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00
tsconfig.json react-sp-tinymce editor samples added 2023-06-24 13:32:25 +01:00

README.md

SharePoint List Integration with TinyMCE Editor

Summary

An example of integrating SharePoint lists with TinyMCE editors can be found in this sample. The web part allows users to insert column data from associated SharePoint lists using a split button on the toolbar. An editor preview plugin for TinyMce was developed in order to be able to preview changes before they are saved.

Sample web part showing SharePoint list integration with TinyMce editor

Compatibility

⚠️ Important
Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.
Refer to https://aka.ms/spfx-matrix for more information on SPFx compatibility.

SPFx 1.17.4 Node.js v16.13.0 Compatible with SharePoint Online Does not work with SharePoint 2019 Does not work with SharePoint 2016 (Feature Pack 2) Teams Incompatible Local Workbench Incompatible Hosted Workbench Compatible Compatible with Remote Containers

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

Access to a SharePoint online site with various tenant users granted access to various site resources directly, via AAD groups and via SharePoint groups.

Contributors

Version history

Version Date Comments
1.0.0 June 6, 2023 Initial release

Minimal Path to Awesome

  • Clone this repository

  • Ensure that you are at the solution folder

  • in the command-line run:

    • npm install
    • gulp trust-dev-cert
    • gulp serve --nobrowser
  • Open the hosted workbench on a SharePoint site - i.e. https://tenant.sharepoint.com/site/sitename/_layouts/workbench.aspx

  • Add the [OC] Tinymce Editor web part to the page.

  • In the web part properties, Add absolute URL of the site under Site URL field.

  • Select the required list from the available list under Select a list dropdown. This dropdown will be auto populated based on the Site URL property

  • Provide list Item Id

  • Close the web part properties pane and save and reload the page

Features

An example of integrating SharePoint lists with TinyMCE editors can be found in this sample. The web part allows users to insert column data from associated SharePoint lists using a split button on the toolbar. An editor preview plugin for TinyMce was developed in order to be able to preview changes before they are saved.

Supported list columns

  • Text
  • DateTime
  • Number
  • Note
  • Single taxonomy
  • Multi taxonomy
  • User
  • User Multi
  • Choices
  • Hyperlink

Help

We do not support samples, but we this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

If you're having issues building the solution, please run spfx doctor from within the solution folder to diagnose incompatibility issues with your environment.

If you encounter any issues while using this sample, create a new issue.

For questions regarding this sample, create a new question.

Finally, if you have an idea for improvement, make a suggestion.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.