Fixes for issue #33637 were incorrectly backported to TYPO3 4.6.
The selection was not yet structured as an object in that release.
Change-Id: Ibe084b34bd1196d5d65c51645092d646ae6f3e8d
Resolves: #40082
Releases: 4.6
Reviewed-on: http://review.typo3.org/15470
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
// Monitor the language combo's store being loaded
select.mon(select.getStore(), 'load', function () {
this.addLanguageMarkingRules();
- var selection = this.editor.getSelection(),
- selectionEmpty = selection.isEmpty(),
- ancestors = selection.getAllAncestors(),
- endPointsInSameBlock = selection.endPointsInSameBlock();
+ var selection = this.editor._getSelection(),
+ selectionEmpty = this.editor._selectionEmpty(selection),
+ ancestors = this.editor.getAllAncestors(),
+ endPointsInSameBlock = this.editor.endPointsInSameBlock();
this.onUpdateToolbar(select, this.getEditorMode(), selectionEmpty, ancestors, endPointsInSameBlock);
}, this);
}
var select = this.getButton(dropDown[0]);
if (select) {
select.mon(select.getStore(), 'load', function () {
- var selection = this.editor.getSelection(),
- selectionEmpty = selection.isEmpty(),
- ancestors = selection.getAllAncestors(),
- endPointsInSameBlock = selection.endPointsInSameBlock();
+ var selection = this.editor._getSelection(),
+ selectionEmpty = this.editor._selectionEmpty(selection),
+ ancestors = this.editor.getAllAncestors(),
+ endPointsInSameBlock = this.editor.endPointsInSameBlock();
this.onUpdateToolbar(select, this.getEditorMode(), selectionEmpty, ancestors, endPointsInSameBlock);
}, this);
}
*/
onCssParsingComplete: function () {
var button = this.getButton('TextIndicator'),
- selection = this.editor.getSelection(),
- selectionEmpty = selection.isEmpty(),
- ancestors = selection.getAllAncestors(),
- endPointsInSameBlock = selection.endPointsInSameBlock();
+ selection = this.editor._getSelection(),
+ selectionEmpty = this.editor._selectionEmpty(selection),
+ ancestors = this.editor.getAllAncestors(),
+ endPointsInSameBlock = this.editor.endPointsInSameBlock();
if (button) {
this.onUpdateToolbar(button, this.getEditorMode(), selectionEmpty, ancestors, endPointsInSameBlock);
}