Skip to content

Commit

Permalink
chore(release): 3.110.0 [skip ci]
Browse files Browse the repository at this point in the history
# [3.110.0](v3.109.1...v3.110.0) (2025-01-31)

### Features

* **quill:** changes string replace to not blindly replace every space because it was messing up inline styles ([857c424](857c424))
  • Loading branch information
semantic-release-bot committed Jan 31, 2025
1 parent 857c424 commit 3819d16
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [3.110.0](https://github.com/ClearC2/grid-form-builder/compare/v3.109.1...v3.110.0) (2025-01-31)


### Features

* **quill:** changes string replace to not blindly replace every space because it was messing up inline styles ([857c424](https://github.com/ClearC2/grid-form-builder/commit/857c424dc6c3968cab2cd5b596d2106b296aa604))

## [3.109.1](https://github.com/ClearC2/grid-form-builder/compare/v3.109.0...v3.109.1) (2025-01-29)


Expand Down
10 changes: 3 additions & 7 deletions dist/cjs/Inputs/Richtextarea/Quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ var ReactQuill = /*#__PURE__*/function (_Component) {
name = _this$props.name;
_this.editor = new _quill.default("#".concat(name), {
theme: theme,
scrollingContainer: 'div',
modules: modules
});

Expand Down Expand Up @@ -146,14 +145,11 @@ var ReactQuill = /*#__PURE__*/function (_Component) {
var isFocused = _this.props.isFocused;
var value = _this.props.value;
if (!_this.editor || typeof value === 'undefined') return;
var cursor = 0;

if (isFocused && _this.editor.getSelection(true)) {
cursor = _this.editor.getSelection(true).index; // do not poll the selection if the input is not focused because it will scroll the element into view when you don't want it to - JRA 01/13/25
}
var cursor = _this.editor.getSelection(true) ? _this.editor.getSelection(true).index : 0;

if (typeof value === 'string') {
value = (0, _replaceAll.default)(value).call(value, ' ', ' '); // this fixes an issue where multiple spaces/trailing spaces in the markup are truncated - JRA 01/16/25
value = (0, _replaceAll.default)(value).call(value, ' <', '&nbsp;<');
value = (0, _replaceAll.default)(value).call(value, ' ', '&nbsp;&nbsp;'); // this fixes an issue where multiple spaces/trailing spaces in the markup are truncated - JRA 01/16/25
}

_this.editor.clipboard.dangerouslyPasteHTML(value);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grid-form-builder",
"version": "3.109.1",
"version": "3.110.0",
"description": "Form Builder built on top of React Grid Layout",
"repository": {
"type": "git",
Expand Down

0 comments on commit 3819d16

Please sign in to comment.