Permalink
Browse files

EZP-29957: Two XML blocks in the same Class in a different Categories…

… will break second Online Editor (#1411)
  • Loading branch information...
mateuszbieniek committed Jan 8, 2019
1 parent 6ba7c8a commit a6688571bb25b7c864c7dd5fdc294e56f720557f
@@ -876,12 +876,11 @@

try {
s.removeAllRanges();
s.addRange(r);
} catch (ex) {
// IE9 might throw errors here don't know why
// IE might throw errors here if the editor is within a hidden container and selection is changed
}

s.addRange(r);


// Forward is set to false and we have an extend function
if (forward === false && s.extend) {
s.collapse(r.endContainer, r.endOffset);

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -8831,12 +8831,11 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {

try {
s.removeAllRanges();
s.addRange(r);
} catch (ex) {
// IE9 might throw errors here don't know why
// IE might throw errors here if the editor is within a hidden container and selection is changed
}

s.addRange(r);


// Forward is set to false and we have an extend function
if (forward === false && s.extend) {
s.collapse(r.endContainer, r.endOffset);

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -10077,12 +10077,11 @@ window.tinymce.dom.Sizzle = Sizzle;

try {
s.removeAllRanges();
s.addRange(r);
} catch (ex) {
// IE9 might throw errors here don't know why
// IE might throw errors here if the editor is within a hidden container and selection is changed
}

s.addRange(r);


// Forward is set to false and we have an extend function
if (forward === false && s.extend) {
s.collapse(r.endContainer, r.endOffset);
@@ -10050,12 +10050,11 @@ window.tinymce.dom.Sizzle = Sizzle;

try {
s.removeAllRanges();
s.addRange(r);
} catch (ex) {
// IE9 might throw errors here don't know why
// IE might throw errors here if the editor is within a hidden container and selection is changed
}

s.addRange(r);


// Forward is set to false and we have an extend function
if (forward === false && s.extend) {
s.collapse(r.endContainer, r.endOffset);

0 comments on commit a668857

Please sign in to comment.