Skip to content
Snippets Groups Projects
Commit fb77baf3 authored by Jacob Benz's avatar Jacob Benz
Browse files

change lb display behviour

parent dfd1f0cf
No related branches found
No related tags found
No related merge requests found
......@@ -373,7 +373,7 @@ span[data-mce-bogus] {
text-indent: unset !important;
}
*[_tag='lb'] {
/**[_tag='lb'] {
display : inline !important;
}
......@@ -386,7 +386,7 @@ span[data-mce-bogus] {
content: "\A <lb />" !important;
box-shadow: none !important;
padding-left: 0 !important;
}
}*/
@media (prefers-color-scheme: dark) {
*[_tag='pb'] {
......
......@@ -281,7 +281,7 @@ span[data-mce-bogus] {
text-indent: unset !important;
}
*[_tag='lb'] {
/**[_tag='lb'] {
display : inline !important;
}
......@@ -294,7 +294,7 @@ span[data-mce-bogus] {
content: "\A <lb />" !important;
box-shadow: none !important;
padding-left: 0 !important;
}
}*/
@media (prefers-color-scheme: dark) {
*[_tag='pb'] {
......
......@@ -505,12 +505,12 @@ export const tinymceWrapperInit = function ({
let open_tag = `<${editorTagName} id="${id}" _tag="lb"`;
// We have to check if text is allowed in the tag we want to add.
let textallowed = writer.schemaManager.canTagContainText(tagName);
open_tag += ` _textallowed="${textallowed}"`;
open_tag += ` _textallowed="${textallowed}">`;
const close_tag = '</' + editorTagName + '>';
// const close_tag = '</' + editorTagName + '>' + '\uFEFF';
let content = `${open_tag}${close_tag}`;
let content = `${open_tag}\uFEFF${close_tag}`;
// default action = add
//@ts-ignore
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment