ONLYOFFICE / sdkjs-plugins

The add-ons for ONLYOFFICE Document Server and ONLYOFFICE Desktop Editors.
https://www.onlyoffice.com
Apache License 2.0
136 stars 134 forks source link

Issue: Problem with new lines (\n) in version 7.0.0+ #167

Closed mbx2015 closed 2 years ago

mbx2015 commented 2 years ago

Do you want to request a feature or report a bug? bug

What is the current behavior? Instead of making new line, it print "\n" when I insert a paragraph via a plugin (SearchAndReplace), in the previous version 6.4.0 was working, now it's a problem.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior? Should return to new line not printing "\n"

Did this work in previous versions of DocumentServer? Yes

DocumentServer Docker tag: 7.0.0

Host Operating System: Docker on both Windows and Linux (debian)

mbx2015 commented 2 years ago

Do you want to request a feature or report a bug? bug

What is the current behavior? Instead of making new line, it print "\n" when I insert a paragraph via a plugin (SearchAndReplace), in the previous version 6.4.0 was working, now it's a problem.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

What is the expected behavior? Should return to new line not printing "\n"

Did this work in previous versions of DocumentServer? Yes

DocumentServer Docker tag: 7.0.0

Host Operating System: Docker on both Windows and Linux (debian)

7.0.0 image

6.4.0 image

l8556 commented 2 years ago

@mbx2015 Hi! Please provide more details on what you are doing? as everything works correctly for me,

I use the searchAndReplaceOnStart plugin from the master branch of the latest version.

The result of the plugin's work is on the screenshot image_2022-03-16_14-34-24

ds 7.0.0.133

Could you attach plugin you've using? Maybe it's used some old code?

mbx2015 commented 2 years ago

Hi @l8556 , Here is the plugin code I work with: search-replace.zip

l8556 commented 2 years ago

@mbx2015 Please provide a link to our examples or plugins.

If you wrote your own plugin and use it, specify the method you think is inconsistent with the documentation and doesn't work correctly.

ShockwaveNN commented 2 years ago

This issue was closed due to no response.