Skip to content

Commit

Permalink
feat: Notes editor is not wysiwyg - EXO-65725 - Meeds-io/MIPs#71
Browse files Browse the repository at this point in the history
 Notes editor is not wysiwyg
  • Loading branch information
hakermi committed Sep 11, 2023
1 parent b3dca1a commit 99d2ca9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
17 changes: 13 additions & 4 deletions notes-webapp/src/main/webapp/skin/less/notes/editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,25 @@

blockquote {
font-weight: 400 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
padding: 10px 0 0 10px !important;
border-left-color: @primaryColor !important;
margin: 0 0 10px 0 !important;

p {
margin-bottom: 0 !important;
}

strong {
font-weight: bold;
}
}

a {
color: #0782C1;
}

ol, ul, dl {
margin: 0 0 10px 40px;
margin: 0 0 10px 0px;
padding: 0 40px;
}

Expand Down Expand Up @@ -102,7 +111,7 @@
}

img {
margin: 0 10px 10px 0 !important;
margin: 10px !important;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<img :src="srcImageNote">
<span class="notesFormTitle ps-2">{{ noteFormTitle }}</span>
<v-icon
v-if="notesMultilingualActive && note?.id"
v-if="notesMultilingualActive && note.id"
size="22"
class="primary--text clickable pa-2"
@click="showTranslations">
Expand Down Expand Up @@ -323,6 +323,10 @@ export default {
if (this.spaceId) {
this.init();
}
console.log(`${eXo.env.portal.userName} is editing me`);
},
beforeDestroy() {
console.log(`${eXo.env.portal.userName} exited editing me`);
},
methods: {
init() {
Expand Down Expand Up @@ -600,9 +604,11 @@ export default {
CKEDITOR.addCss('h1, h2, h3 { font-weight: 500; line-height:1.2; }');
CKEDITOR.addCss('p,li { font-size: 16px; line-height:1.4}');
CKEDITOR.addCss('p, li, blockquote { font-size: 16px;}');
CKEDITOR.addCss('ol, ul, dl {margin: 0 0 10px 40px;padding: 0 40px;}');
CKEDITOR.addCss('ol, ul, dl {margin: 0 0 10px 0px;padding: 0 40px;}');
CKEDITOR.addCss('ul li {list-style: revert; list-style-type: inherit !important;}');
CKEDITOR.addCss('blockquote {font-weight: 400;}');
CKEDITOR.addCss('blockquote {font-weight: 400; padding: 10px 0 0 10px !important; margin: 0 0 10px 0!important;}');
CKEDITOR.addCss('table {margin-bottom: 10px !important; margin-top: 0 !important;}');
CKEDITOR.addCss('img {margin:10px !important; }');
CKEDITOR.addCss('.cke_editable { font-size: 14px; line-height: 1.4 !important;}');
CKEDITOR.addCss('.placeholder { color: #5f708a!important;}');
CKEDITOR.addCss('ol li {list-style-type: decimal !important;}');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
color="primary"
class="ma-1"
small
:outlined="!!selectedTranslation?.value"
:outlined="!!selectedTranslation.value"
@click="changeTranslation({value: ''})">
{{ $t('notes.label.translation.originalVersion') }}
</v-chip>
Expand Down

0 comments on commit 99d2ca9

Please sign in to comment.