Skip to content
Code-Schnipsel Gruppen Projekte
Commit 972caf80 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev'

Übergeordnete a736cac6 0511e620
No related branches found
No related tags found
1 Merge Request!8fix: display CKE notifications on the center of the page
...@@ -115,8 +115,6 @@ ...@@ -115,8 +115,6 @@
return; return;
} }
var sel = new CKEDITOR.dom.selection(editor.document);
// edit // edit
element.addEventListener('click', function (e) { element.addEventListener('click', function (e) {
var Target = e.target; var Target = e.target;
...@@ -129,15 +127,10 @@ ...@@ -129,15 +127,10 @@
// delete brick // delete brick
if (Target.name === 'delete') { if (Target.name === 'delete') {
e.preventDefault(); e.preventDefault();
Brick.parentNode.removeChild(Brick) Brick.parentNode.removeChild(Brick);
} }
//sel.selectElement(editor.document.body);
}); });
// element.addEventListener('focus', function () {
// });
element.addEventListener('dblclick', function (e) { element.addEventListener('dblclick', function (e) {
editNode(e.target, editor); editNode(e.target, editor);
}); });
...@@ -192,13 +185,13 @@ ...@@ -192,13 +185,13 @@
}; };
// add ckeditor // add ckeditor
CKEDITOR.plugins.add('quiqqerBricks', { window.CKEDITOR.plugins.add('quiqqerBricks', {
icons: "icon", icons: "icon",
lang : ['en', 'de'], lang : ['en', 'de'],
onLoad: function () { onLoad: function () {
// Register styles for placeholder widget frame. // Register styles for placeholder widget frame.
CKEDITOR.addCss( window.CKEDITOR.addCss(
'.quiqqer_bricks_placeholder {' + '.quiqqer_bricks_placeholder {' +
' cursor: pointer;' + ' cursor: pointer;' +
' display: inline-block;' + ' display: inline-block;' +
...@@ -285,7 +278,7 @@ ...@@ -285,7 +278,7 @@
result = data.replace( result = data.replace(
/{{brick ([^}}]*)}}/g, /{{brick ([^}}]*)}}/g,
function (match) { function (match) {
match = match.replace('{{brick ', '') match = match.replace('{{brick ', '');
match = match.replace('}}', ''); match = match.replace('}}', '');
match = match.trim(); match = match.trim();
match = match.split(' '); match = match.split(' ');
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren