Skip to content

Commit

Permalink
fix: fix drag n drop in the frontend, closes #1729
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Apr 24, 2020
1 parent c0218d5 commit 93d838e
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions phpmyfaq/assets/src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ $(document).ready(function() {
selector: 'textarea#answer',
theme: 'modern',
plugins: [
'advlist autolink lists link image charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen',
'insertdatetime media nonbreaking save table contextmenu directionality',
'emoticons template paste textcolor',
'advlist anchor autolink lists link image imagetools charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code codesample fullscreen colorpicker help',
'insertdatetime media nonbreaking save table contextmenu directionality textpattern',
'emoticons template paste textcolor autosave toc',
],
relative_urls: false,
convert_urls: false,
Expand All @@ -37,11 +37,15 @@ $(document).ready(function() {
paste_remove_spans: true,
entities: '10',
entity_encoding: 'raw',

toolbar1:
'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent',
toolbar2: 'link | forecolor backcolor emoticons | print',
'formatselect | styleselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat',
toolbar2: 'insertfile | paste codesample | link image preview media | forecolor backcolor emoticons | phpmyfaq',
image_advtab: true,
image_class_list: [
{ title: 'None', value: '' },
{ title: 'Responsive', value: 'img-fluid' },
],
image_dimensions: true,

// Formatting
style_formats: [
Expand Down Expand Up @@ -76,18 +80,12 @@ $(document).ready(function() {
},
],

paste_word_valid_elements: 'b,strong,i,em,h1,h2,h3,h4,h5,h6',
paste_data_images: true,
visualblocks_default_state: true,
end_container_on_empty_block: true,
extended_valid_elements: 'code[class],video[*],audio[*],source[*]',
removeformat: [
{
selector: '*',
attributes: ['style'],
split: false,
expand: false,
deep: true,
},
],
extended_valid_elements: 'code[class],video[*],audio[*],source[*],iframe[*]',
removeformat: [{ selector: '*', attributes: ['style'], split: false, expand: false, deep: true }],
importcss_append: true,
});
}
Expand Down

0 comments on commit 93d838e

Please sign in to comment.