|
| 1 | +<template> |
| 2 | + <div class="q-pa-md q-gutter-sm"> |
| 3 | + <q-editor |
| 4 | + v-model="qeditor" |
| 5 | + :dense="$q.screen.lt.md" |
| 6 | + :toolbar="[ |
| 7 | + [ |
| 8 | + { |
| 9 | + label: $q.lang.editor.align, |
| 10 | + icon: $q.iconSet.editor.align, |
| 11 | + fixedLabel: true, |
| 12 | + list: 'only-icons', |
| 13 | + options: ['left', 'center', 'right', 'justify'] |
| 14 | + }, |
| 15 | + { |
| 16 | + label: $q.lang.editor.align, |
| 17 | + icon: $q.iconSet.editor.align, |
| 18 | + fixedLabel: true, |
| 19 | + options: ['left', 'center', 'right', 'justify'] |
| 20 | + } |
| 21 | + ], |
| 22 | + ['bold', 'italic', 'strike', 'underline', 'subscript', 'superscript'], |
| 23 | + ['token', 'hr', 'link', 'custom_btn'], |
| 24 | + ['print', 'fullscreen'], |
| 25 | + [ |
| 26 | + { |
| 27 | + label: $q.lang.editor.formatting, |
| 28 | + icon: $q.iconSet.editor.formatting, |
| 29 | + list: 'no-icons', |
| 30 | + options: [ |
| 31 | + 'p', |
| 32 | + 'h1', |
| 33 | + 'h2', |
| 34 | + 'h3', |
| 35 | + 'h4', |
| 36 | + 'h5', |
| 37 | + 'h6', |
| 38 | + 'code' |
| 39 | + ] |
| 40 | + }, |
| 41 | + { |
| 42 | + label: $q.lang.editor.fontSize, |
| 43 | + icon: $q.iconSet.editor.fontSize, |
| 44 | + fixedLabel: true, |
| 45 | + fixedIcon: true, |
| 46 | + list: 'no-icons', |
| 47 | + options: [ |
| 48 | + 'size-1', |
| 49 | + 'size-2', |
| 50 | + 'size-3', |
| 51 | + 'size-4', |
| 52 | + 'size-5', |
| 53 | + 'size-6', |
| 54 | + 'size-7' |
| 55 | + ] |
| 56 | + }, |
| 57 | + { |
| 58 | + label: $q.lang.editor.defaultFont, |
| 59 | + icon: $q.iconSet.editor.font, |
| 60 | + fixedIcon: true, |
| 61 | + list: 'no-icons', |
| 62 | + options: [ |
| 63 | + 'default_font', |
| 64 | + 'arial', |
| 65 | + 'arial_black', |
| 66 | + 'comic_sans', |
| 67 | + 'courier_new', |
| 68 | + 'impact', |
| 69 | + 'lucida_grande', |
| 70 | + 'times_new_roman', |
| 71 | + 'verdana' |
| 72 | + ] |
| 73 | + }, |
| 74 | + 'removeFormat' |
| 75 | + ], |
| 76 | + ['quote', 'unordered', 'ordered', 'outdent', 'indent'], |
| 77 | +
|
| 78 | + ['undo', 'redo'], |
| 79 | + ['viewsource'] |
| 80 | + ]" |
| 81 | + :fonts="{ |
| 82 | + arial: 'Arial', |
| 83 | + arial_black: 'Arial Black', |
| 84 | + comic_sans: 'Comic Sans MS', |
| 85 | + courier_new: 'Courier New', |
| 86 | + impact: 'Impact', |
| 87 | + lucida_grande: 'Lucida Grande', |
| 88 | + times_new_roman: 'Times New Roman', |
| 89 | + verdana: 'Verdana' |
| 90 | + }" |
| 91 | + /> |
| 92 | + </div> |
| 93 | +</template> |
| 94 | +<script> |
| 95 | +export default { |
| 96 | + data () { |
| 97 | + return { |
| 98 | + qeditor: '<pre>Check out the two different types of dropdowns' + |
| 99 | + ' in each of the "Align" buttons.</pre> ' |
| 100 | + } |
| 101 | + } |
| 102 | +} |
| 103 | +</script> |
0 commit comments