├── .gitignore ├── .pa11yci ├── info.json ├── yii2 ├── assets │ ├── FontAweSomeAsset.php │ └── RichTextAsset.php └── widgets │ └── RichTextWidget.php ├── cypress.config.js ├── src ├── richtext-colors.scss ├── richtext.min.css.map ├── richtext.min.css ├── richtext.scss └── jquery.richtext.min.js ├── .github ├── workflows │ ├── test.yml │ ├── npm_publish.yml │ ├── accessibility.yml │ └── build.yml ├── dependabot.yml ├── FUNDING.yml ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE │ ├── bug-report.md │ └── feature-request.md ├── composer.json ├── cypress ├── support │ ├── e2e.js │ └── commands.js └── e2e │ └── basics.cy.js ├── examples ├── css │ └── site.css ├── fontawesome5.html ├── index.html └── multipleEditors.html ├── package.json ├── CONTRIBUTING.md ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | vendor/ 3 | node_modules/ 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /.pa11yci: -------------------------------------------------------------------------------- 1 | { 2 | "defaults": { 3 | "chromeLaunchConfig": { 4 | "args": ["--no-sandbox"] 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /info.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "RichText", 3 | "version" : "1.1.3", 4 | "source" : "https://github.com/webfashionist/RichText/", 5 | "info" : "https://github.com/webfashionist/RichText/" 6 | } 7 | -------------------------------------------------------------------------------- /yii2/assets/FontAweSomeAsset.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | ## Overview 10 | 11 | This pull request [introduces/changes/removes] [functionality/feature]. 12 | 13 | (Please write a summary of your pull request here. This paragraph should go into detail about what is changing, the motivation behind this change, and the approach you took.) 14 | 15 | 16 | 17 | **I understand that:** 18 | 19 | - [ ] I'm submitting this PR for reference only. It shows an example of what I'd like to see changed but 20 | I understand that it will not be merged and I will not be listed as a contributor on this project. -------------------------------------------------------------------------------- /examples/fontawesome5.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |` and `
` tags and check for the length of the content.*
403 |
404 | **Example:**
405 |
406 | ```javascript
407 | $('.richText-editor').trigger('clear');
408 | ```
409 |
410 | ### Add content at caret position
411 |
412 | If you want to add content at the caret position, you can trigger the `pasteAtCaret` event on the `.richText-editor` element.
413 |
414 | **Example:**
415 |
416 | ```javascript
417 | $('.richText-editor').trigger('pasteAtCaret', '