Merge pull request #8892 from filamentphp/fix/markdown-rtl-8863

Fix Markdown editor rtl support
This commit is contained in:
Zep Fietje
2023-10-05 10:01:17 +02:00
committed by GitHub
8 changed files with 28 additions and 23 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -2,13 +2,13 @@ input::-webkit-datetime-edit{display:block;padding:0}.cropper-container{directio
cropperjs/dist/cropper.min.css:
(*!
* Cropper.js v1.6.1
* Cropper.js v1.5.13
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-09-17T03:44:17.565Z
* Date: 2022-11-20T05:30:43.444Z
*)
filepond/dist/filepond.min.css:
@@ -120,6 +120,11 @@ export default function markdownEditorFormComponent({
uploadImage: true,
})
this.editor.codemirror.setOption(
'direction',
document.documentElement?.dir ?? 'ltr',
)
// When creating a link, highlight the URL instead of the label:
this.editor.codemirror.on('changes', (instance, changes) => {
try {
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+7 -7
View File
File diff suppressed because one or more lines are too long