Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
5803f73e
Commit
5803f73e
authored
May 10, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spellCheck Error
parent
0f7e154c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
word/Editor/Spelling.js
word/Editor/Spelling.js
+2
-2
word/api.js
word/api.js
+3
-3
No files found.
word/Editor/Spelling.js
View file @
5803f73e
...
@@ -342,7 +342,7 @@ CParaSpellChecker.prototype =
...
@@ -342,7 +342,7 @@ CParaSpellChecker.prototype =
{
{
if
(
true
===
editor
.
WordControl
.
m_oLogicDocument
.
Spelling
.
Add_WaitingParagraph
(
this
.
Paragraph
,
this
.
RecalcId
,
usrWords
,
usrLang
))
if
(
true
===
editor
.
WordControl
.
m_oLogicDocument
.
Spelling
.
Add_WaitingParagraph
(
this
.
Paragraph
,
this
.
RecalcId
,
usrWords
,
usrLang
))
{
{
spellCheck
(
editor
,
{
"
type
"
:
"
spell
"
,
"
ParagraphId
"
:
this
.
ParaId
,
"
RecalcId
"
:
this
.
RecalcId
,
"
ElementId
"
:
0
,
"
usrWords
"
:
usrWords
,
"
usrLang
"
:
usrLang
});
editor
.
spellCheck
(
{
"
type
"
:
"
spell
"
,
"
ParagraphId
"
:
this
.
ParaId
,
"
RecalcId
"
:
this
.
RecalcId
,
"
ElementId
"
:
0
,
"
usrWords
"
:
usrWords
,
"
usrLang
"
:
usrLang
});
}
}
else
else
{
{
...
@@ -477,7 +477,7 @@ CParaSpellChecker.prototype =
...
@@ -477,7 +477,7 @@ CParaSpellChecker.prototype =
if
(
null
===
Variants
&&
false
===
editor
.
WordControl
.
m_oLogicDocument
.
Spelling
.
Check_WaitingParagraph
(
this
.
Paragraph
))
if
(
null
===
Variants
&&
false
===
editor
.
WordControl
.
m_oLogicDocument
.
Spelling
.
Check_WaitingParagraph
(
this
.
Paragraph
))
{
{
spellCheck
(
editor
,
{
"
type
"
:
"
suggest
"
,
"
ParagraphId
"
:
this
.
ParaId
,
"
RecalcId
"
:
this
.
RecalcId
,
"
ElementId
"
:
FoundIndex
,
"
usrWords
"
:
[
Word
],
"
usrLang
"
:
[
FoundElement
.
Lang
]
});
editor
.
spellCheck
(
{
"
type
"
:
"
suggest
"
,
"
ParagraphId
"
:
this
.
ParaId
,
"
RecalcId
"
:
this
.
RecalcId
,
"
ElementId
"
:
FoundIndex
,
"
usrWords
"
:
[
Word
],
"
usrLang
"
:
[
FoundElement
.
Lang
]
});
}
}
}
}
...
...
word/api.js
View file @
5803f73e
...
@@ -6390,16 +6390,16 @@ asc_docs_api.prototype.asc_getAnchorPosition = function()
...
@@ -6390,16 +6390,16 @@ asc_docs_api.prototype.asc_getAnchorPosition = function()
return
new
AscCommon
.
asc_CRect
(
AnchorPos
.
X0
,
AnchorPos
.
Y
,
AnchorPos
.
X1
-
AnchorPos
.
X0
,
0
);
return
new
AscCommon
.
asc_CRect
(
AnchorPos
.
X0
,
AnchorPos
.
Y
,
AnchorPos
.
X1
-
AnchorPos
.
X0
,
0
);
};
};
function
spellCheck
(
editor
,
rdata
)
{
asc_docs_api
.
prototype
.
spellCheck
=
function
(
rdata
)
{
//console.log("start - " + rdata);
//console.log("start - " + rdata);
// ToDo проверка на подключение
// ToDo проверка на подключение
switch
(
rdata
.
type
)
{
switch
(
rdata
.
type
)
{
case
"
spell
"
:
case
"
spell
"
:
case
"
suggest
"
:
case
"
suggest
"
:
editor
.
SpellCheckApi
.
spellCheck
(
JSON
.
stringify
(
rdata
));
this
.
SpellCheckApi
.
spellCheck
(
JSON
.
stringify
(
rdata
));
break
;
break
;
}
}
}
}
;
window
[
"
asc_nativeOnSpellCheck
"
]
=
function
(
response
)
window
[
"
asc_nativeOnSpellCheck
"
]
=
function
(
response
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment