v-markdown-editor icon indicating copy to clipboard operation
v-markdown-editor copied to clipboard

Icons of the toolbar not show.

Open oriolrg opened this issue 5 years ago • 8 comments

I implement you markdown-editor in my project, but the icons of de toolbar not show. Only show btn-outline-secondary

oriolrg avatar May 01 '20 08:05 oriolrg

add fontawesome cdn: https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css

nasa8x avatar May 03 '20 05:05 nasa8x

Even after implementing fontawesome cdn, still having issues with toolbar alignment not being as shown in demo

2020-05-28 18_13_06-test1

jpacitto avatar May 28 '20 21:05 jpacitto

Please import css import 'v-markdown-editor/dist/v-markdown-editor.css';

or use cdn

https://cdn.jsdelivr.net/npm/v-markdown-editor/dist/v-markdown-editor.css

nasa8x avatar May 29 '20 02:05 nasa8x

I already had 'v-markdown-editor/dist/v-markdown-editor.css' imported in main.js of my vuejs project but the icon alignment and style are still the same as the image above. This was testing in a bare bones vuejs project.

2020-05-29 04_47_02-main js - test - Visual Studio Code 2020-05-29 04_48_18-App vue - test - Visual Studio Code 2020-05-29 04_48_45-● index html - test - Visual Studio Code

jpacitto avatar May 29 '20 08:05 jpacitto

Is there a way to use FontAwsome icons using vue-fontawesome component instead of using a CDN ?

I imported icons the documented way, but still icons are not loading:

import { library } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { fab } from '@fortawesome/free-brands-svg-icons'
import { fas } from '@fortawesome/free-solid-svg-icons'
library.add(fab, fas)
// Vue.component(FontAwesomeIcon.name, FontAwesomeIcon)
Vue.component('font-awesome-icon', FontAwesomeIcon)

thanks

pevandenburie avatar Aug 25 '20 09:08 pevandenburie

I stumbled exactly to this problem. the setup instructions lack completely mentioning that fontawesome fonts must be loaded.

first, it shows tiny pixels, but if only adding fontawesome css to page, the icons appear but they are misplaced like on the screenshot of the third comment:

  • https://github.com/nasa8x/v-markdown-editor/issues/10#issuecomment-635618349

glensc avatar Oct 06 '20 06:10 glensc

needs to import morioh.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/morioh/dist/css/morioh.min.css">

sheey11 avatar Nov 29 '20 10:11 sheey11