mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-04-07 14:06:31 +08:00
[develop] Fix readme(linter)
This commit is contained in:
@ -141,12 +141,10 @@ sdkjs\common\apiBase.js
|
|||||||
|
|
||||||
Linux or macOS (bash)
|
Linux or macOS (bash)
|
||||||
|
|
||||||
```bash
|
sed -i "s,this.sendEvent('asc_onDocumentContentReady');,
|
||||||
sed -i "s,this.sendEvent('asc_onDocumentContentReady');,\
|
this.sendEvent('asc_onDocumentContentReady');\n
|
||||||
this.sendEvent('asc_onDocumentContentReady');\n\
|
this.AddImageUrl(['http://localhost/example/images/logo.png']);,"
|
||||||
this.AddImageUrl(['http://localhost/example/images/logo.png']);," \
|
sdkjs\common\apiBase.js
|
||||||
sdkjs\common\apiBase.js
|
|
||||||
```
|
|
||||||
|
|
||||||
2)Delete browser cache or hard reload the page `Ctrl + Shift + R`
|
2)Delete browser cache or hard reload the page `Ctrl + Shift + R`
|
||||||
|
|
||||||
@ -157,23 +155,11 @@ To change something in `server` do the following steps
|
|||||||
1)Edit source file. Let's send `"Hello World!"`
|
1)Edit source file. Let's send `"Hello World!"`
|
||||||
chart message every time a document is opened.Do the following command
|
chart message every time a document is opened.Do the following command
|
||||||
|
|
||||||
Windows(cmd)
|
sed -i 's#opt_hasForgotten, opt_openedAt) {#
|
||||||
|
opt_hasForgotten, opt_openedAt) {\n
|
||||||
```bash
|
yield* onMessage(ctx, conn, {"message": "Hello World!"});#'
|
||||||
sed -i 's#opt_hasForgotten, opt_openedAt) {#^
|
server\DocService\sources\DocsCoServer.js
|
||||||
opt_hasForgotten, opt_openedAt) {^
|
=
|
||||||
\nyield* onMessage(ctx, conn, {"message": "Hello World!"});#' ^
|
|
||||||
server\DocService\sources\DocsCoServer.js
|
|
||||||
```
|
|
||||||
|
|
||||||
Linux or macOS (bash)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sed -i 's#opt_hasForgotten, opt_openedAt) {#\
|
|
||||||
opt_hasForgotten, opt_openedAt) {\
|
|
||||||
\nyield* onMessage(ctx, conn, {"message": "Hello World!"});#' \
|
|
||||||
server\DocService\sources\DocsCoServer.js
|
|
||||||
```
|
|
||||||
|
|
||||||
2)Restart document server process
|
2)Restart document server process
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user