Commit cea9c14b authored by alexpott's avatar alexpott
Browse files

Issue #2589779 by Jelle_S, Wim Leers: Uncaught TypeError: Cannot set property...

Issue #2589779 by Jelle_S, Wim Leers: Uncaught TypeError: Cannot set property 'float' of undefined when switching text formats
parent ba11b094
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
// Override requiredContent & allowedContent. // Override requiredContent & allowedContent.
widgetDefinition.requiredContent = new CKEDITOR.style({ widgetDefinition.requiredContent = new CKEDITOR.style({
element: 'img', element: 'img',
styles: {},
attributes: { attributes: {
'alt': '', 'alt': '',
'src': '', 'src': '',
...@@ -43,6 +44,7 @@ ...@@ -43,6 +44,7 @@
}); });
var allowedContentDefinition = { var allowedContentDefinition = {
element: 'img', element: 'img',
styles: {},
attributes: { attributes: {
'!data-entity-type': '', '!data-entity-type': '',
'!data-entity-uuid': '' '!data-entity-uuid': ''
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
editor.addCommand('drupallink', { editor.addCommand('drupallink', {
allowedContent: new CKEDITOR.style({ allowedContent: new CKEDITOR.style({
element: 'a', element: 'a',
styles: {},
attributes: { attributes: {
'!href': '', '!href': '',
'target': '' 'target': ''
...@@ -22,6 +23,7 @@ ...@@ -22,6 +23,7 @@
}), }),
requiredContent: new CKEDITOR.style({ requiredContent: new CKEDITOR.style({
element: 'a', element: 'a',
styles: {},
attributes: { attributes: {
href: '' href: ''
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment