Skip to content

Commit

Permalink
IBX-6379: Fixed anchor in formatted (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored Feb 8, 2024
1 parent 59e7bc4 commit ef78778
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class IbexaAnchorEditing extends Plugin {
model.schema.extend('embedInline', { allowAttributes: 'anchor' });
model.schema.extend('embedImage', { allowAttributes: 'anchor' });
model.schema.extend('customTag', { allowAttributes: 'anchor' });
model.schema.extend('formatted', { allowAttributes: 'anchor' });

commands.get('enter').on('afterExecute', () => {
const blocks = model.document.selection.getSelectedBlocks();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ const VIEWPORT_TOP_OFFSET = 102;
IbexaCustomStylesInline,
IbexaCustomAttributes,
IbexaLink,
IbexaAnchor,
IbexaFormatted,
IbexaAnchor,
IbexaMove,
IbexaRemoveElement,
IbexaBlockAlignment,
Expand Down
11 changes: 11 additions & 0 deletions src/bundle/Resources/public/scss/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,17 @@
background-repeat: no-repeat;
}
}

pre {
&[id]:not(.ibexa-data-source__richtext) {
padding-left: calculateRem(20px);

&:before {
left: calculateRem(2px);
top: calculateRem(2px);
}
}
}
}

.ibexa-field-edit--ezrichtext.ibexa-field-edit--nontranslatable .ibexa-data-source {
Expand Down

0 comments on commit ef78778

Please sign in to comment.