fix: list and table formatting in lesson
This commit is contained in:
@@ -163,7 +163,7 @@ onMounted(() => {
|
|||||||
const batches = createResource({
|
const batches = createResource({
|
||||||
doctype: 'LMS Batch',
|
doctype: 'LMS Batch',
|
||||||
url: 'lms.lms.utils.get_batches',
|
url: 'lms.lms.utils.get_batches',
|
||||||
cache: ['batches', user.data?.email],
|
cache: ['batches', user.data?.email || ''],
|
||||||
auto: true,
|
auto: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -475,7 +475,8 @@ updateDocumentTitle(pageMeta)
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.embed-tool__caption {
|
.embed-tool__caption,
|
||||||
|
.cdx-simple-image__caption {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -585,4 +586,8 @@ iframe {
|
|||||||
border-top: 3px solid theme('colors.gray.700');
|
border-top: 3px solid theme('colors.gray.700');
|
||||||
border-bottom: 3px solid theme('colors.gray.700');
|
border-bottom: 3px solid theme('colors.gray.700');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tc-table {
|
||||||
|
border-left: 1px solid #e8e8eb;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -619,4 +619,8 @@ iframe {
|
|||||||
border-top: 3px solid theme('colors.gray.700');
|
border-top: 3px solid theme('colors.gray.700');
|
||||||
border-bottom: 3px solid theme('colors.gray.700');
|
border-bottom: 3px solid theme('colors.gray.700');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tc-table {
|
||||||
|
border-left: 1px solid #e8e8eb;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { createResource } from 'frappe-ui'
|
import { createResource } from 'frappe-ui'
|
||||||
|
import { sessionStore } from './session'
|
||||||
|
|
||||||
export const useSettings = defineStore('settings', () => {
|
export const useSettings = defineStore('settings', () => {
|
||||||
|
const { isLoggedIn } = sessionStore()
|
||||||
const isSettingsOpen = ref(false)
|
const isSettingsOpen = ref(false)
|
||||||
const activeTab = ref(null)
|
const activeTab = ref(null)
|
||||||
const learningPaths = createResource({
|
const learningPaths = createResource({
|
||||||
@@ -13,13 +15,13 @@ export const useSettings = defineStore('settings', () => {
|
|||||||
field: 'enable_learning_paths',
|
field: 'enable_learning_paths',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
auto: true,
|
auto: isLoggedIn ? true : false,
|
||||||
cache: ['learningPaths'],
|
cache: ['learningPaths'],
|
||||||
})
|
})
|
||||||
|
|
||||||
const onboardingDetails = createResource({
|
const onboardingDetails = createResource({
|
||||||
url: 'lms.lms.utils.is_onboarding_complete',
|
url: 'lms.lms.utils.is_onboarding_complete',
|
||||||
auto: true,
|
auto: isLoggedIn ? true : false,
|
||||||
cache: ['onboardingDetails'],
|
cache: ['onboardingDetails'],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -160,7 +160,10 @@ export function getEditorTools() {
|
|||||||
upload: Upload,
|
upload: Upload,
|
||||||
markdown: Markdown,
|
markdown: Markdown,
|
||||||
image: SimpleImage,
|
image: SimpleImage,
|
||||||
table: Table,
|
table: {
|
||||||
|
class: Table,
|
||||||
|
inlineToolbar: true,
|
||||||
|
},
|
||||||
paragraph: {
|
paragraph: {
|
||||||
class: Paragraph,
|
class: Paragraph,
|
||||||
inlineToolbar: true,
|
inlineToolbar: true,
|
||||||
@@ -179,6 +182,7 @@ export function getEditorTools() {
|
|||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
class: NestedList,
|
class: NestedList,
|
||||||
|
inlineToolbar: true,
|
||||||
config: {
|
config: {
|
||||||
defaultStyle: 'ordered',
|
defaultStyle: 'ordered',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user