diff --git a/src/editor/components/seMenu.js b/src/editor/components/seMenu.js
index 2c80fa5e..78e9b7fd 100644
--- a/src/editor/components/seMenu.js
+++ b/src/editor/components/seMenu.js
@@ -1,6 +1,6 @@
/* eslint-disable node/no-unpublished-import */
-import 'elix/define/MenuButton.js';
import 'elix/define/MenuItem.js';
+import './sePlainMenuButton.js';
const template = document.createElement('template');
template.innerHTML = `
diff --git a/src/editor/components/sePlainBorderButton.js b/src/editor/components/sePlainBorderButton.js
new file mode 100644
index 00000000..6fd53c75
--- /dev/null
+++ b/src/editor/components/sePlainBorderButton.js
@@ -0,0 +1,34 @@
+/* eslint-disable node/no-unpublished-import */
+import {template} from 'elix/src/base/internal.js';
+import {fragmentFrom} from 'elix/src/core/htmlLiterals.js';
+import PlainButton from 'elix/src/plain/PlainButton.js';
+
+/**
+ * @class SePlainBorderButton
+ * Button with a border in the Plain reference design system
+ *
+ * @inherits PlainButton
+ */
+class SePlainBorderButton extends PlainButton {
+ /**
+ * @function get
+ * @returns {PlainObject}
+ */
+ get [template] () {
+ const result = super[template];
+ result.content.append(
+ fragmentFrom.html`
+
+ `
+ );
+ return result;
+ }
+}
+
+export default SePlainBorderButton;
diff --git a/src/editor/components/sePlainMenuButton.js b/src/editor/components/sePlainMenuButton.js
new file mode 100644
index 00000000..85c29c21
--- /dev/null
+++ b/src/editor/components/sePlainMenuButton.js
@@ -0,0 +1,21 @@
+/* eslint-disable node/no-unpublished-import */
+import PlainMenuButton from 'elix/src/plain/PlainMenuButton.js';
+import {defaultState} from 'elix/src/base/internal.js';
+import sePlainBorderButton from './sePlainBorderButton.js';
+
+/**
+ * @class ElixMenuButton
+ */
+export default class ElixMenuButton extends PlainMenuButton {
+ /**
+ * @function get
+ * @returns {PlainObject}
+ */
+ get [defaultState] () {
+ return Object.assign(super[defaultState], {
+ sourcePartType: sePlainBorderButton
+ });
+ }
+}
+
+customElements.define('elix-menu-button', ElixMenuButton);
diff --git a/src/editor/dialogs/sePromptDialog.js b/src/editor/dialogs/sePromptDialog.js
index 05d0bb5b..17fb7cd5 100644
--- a/src/editor/dialogs/sePromptDialog.js
+++ b/src/editor/dialogs/sePromptDialog.js
@@ -42,7 +42,8 @@ export class SePromptDialog extends HTMLElement {
}
break;
default:
- // console.log('unkonw attr for:', name, 'newValue =', newValue);
+ // eslint-disable-next-line no-console
+ console.error('unknown attr for:', name, 'newValue =', newValue);
break;
}
}
diff --git a/src/editor/extensions/ext-markers/ext-markers.js b/src/editor/extensions/ext-markers/ext-markers.js
index b47cf795..60980c65 100644
--- a/src/editor/extensions/ext-markers/ext-markers.js
+++ b/src/editor/extensions/ext-markers/ext-markers.js
@@ -121,7 +121,7 @@ export default {
function setIcon (pos, id) {
if (id.substr(0, 1) !== '\\') { id = '\\textmarker'; }
const ci = '#' + idPrefix + pos + '_' + id.substr(1);
- // svgEditor.setIcon('#cur_' + pos + '_marker_list', $(ci).children());
+ svgEditor.setIcon('#cur_' + pos + '_marker_list', $(ci).children());
$(ci).addClass('current').siblings().removeClass('current');
}
@@ -508,7 +508,7 @@ export default {
buttons.push({
id: idPrefix + pos + '_' + id,
svgicon: id,
- icon: 'markers-' + id + '.png',
+ icon: id + '.svg',
title,
type: 'context',
events: {click: setArrowFromButton},
@@ -565,7 +565,7 @@ export default {
return {
name: strings.name,
- svgicons: 'markers-icons.xml',
+ svgicons: '',
callback () {
$('#marker_panel').addClass('toolset').hide();
},
@@ -595,7 +595,6 @@ export default {
},
elementChanged (opts) {
- // console.log('elementChanged',opts);
const elem = opts.elems[0];
if (elem && (
elem.getAttribute('marker-start') ||
diff --git a/src/editor/images/box.svg b/src/editor/images/box.svg
new file mode 100644
index 00000000..5f6f7afe
--- /dev/null
+++ b/src/editor/images/box.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/editor/images/box_o.svg b/src/editor/images/box_o.svg
new file mode 100644
index 00000000..6be412d4
--- /dev/null
+++ b/src/editor/images/box_o.svg
@@ -0,0 +1,3 @@
+