mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 13:53:40 -05:00
Merge pull request #11234 from overleaf/ae-editor-type-rich-text
Record `cm6-rich-text` editorType in editing session pings GitOrigin-RevId: 32d8cb60361348123bf5825961eb7e8b6e740ce8
This commit is contained in:
parent
dea52fec6f
commit
fce0a45128
2 changed files with 9 additions and 2 deletions
|
@ -266,7 +266,7 @@ If the project has been renamed please look in your project list for a new proje
|
||||||
editorType,
|
editorType,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editorType === 'cm6') {
|
if (editorType === 'cm6' || editorType === 'cm6-rich-text') {
|
||||||
const cm6PerfData = reportCM6Perf()
|
const cm6PerfData = reportCM6Perf()
|
||||||
|
|
||||||
// Ignore if no typing has happened
|
// Ignore if no typing has happened
|
||||||
|
|
|
@ -162,7 +162,14 @@ export default EditorManager = (function () {
|
||||||
if (!this.$scope.editor.sharejs_doc) {
|
if (!this.$scope.editor.sharejs_doc) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
return this.$scope.editor.sharejs_doc.editorType()
|
|
||||||
|
let editorType = this.$scope.editor.sharejs_doc.editorType()
|
||||||
|
|
||||||
|
if (editorType === 'cm6' && this.$scope.editor.showVisual) {
|
||||||
|
editorType = 'cm6-rich-text'
|
||||||
|
}
|
||||||
|
|
||||||
|
return editorType
|
||||||
}
|
}
|
||||||
|
|
||||||
showRichText() {
|
showRichText() {
|
||||||
|
|
Loading…
Reference in a new issue