Giter VIP home page Giter VIP logo

editor's People

Contributors

dependabot[bot] avatar dungsil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fossabot joshw8

editor's Issues

Browse server / Upload to server: possible? How?

Using UI editor for nuxt, I like to know how I can do:
1- open a dialog and browse server files and folders? is it possible?
2- Upload file to server and receive back url and place it inside the editor? is it possible?
If possible, is there any help link or document on how to?

Thank you

Cannot read property 'codemirror' of undefined

Nuxt 2.8.1

run nuxt
edit nuxt.config.js
save

gives error:
Cannot read property 'codemirror' of undefined

at ModuleContainer.setTuiEditor (/projerct/node_modules/@tui-nuxt/editor/src/index.js:66:26) at ModuleContainer.addModule (/projerct/node_modules/@nuxt/core/dist/core.js:189:34) at promise.then (/projerct/node_modules/@nuxt/utils/dist/utils.js:1796:43)

TypeError: Cannot read property 'find' of undefined

Nuxt 2.8.1 with @tui-nuxt/editor and nuxt-jsonld gives an error

TypeError: Cannot read property 'find' of undefined at VueComponent.editorOptions (editor.client.js:15)

in file editor.client.js

-> language: this.$metaInfo.meta.find(e => e.hid === 'og:locale').content || 'en_US'

hooks addImageBlobHook

이미지 μ—…λ‘œλ“œλ₯Ό μœ„ν•΄ graphql을 μ‚¬μš©ν•˜λŠ” μ½œλ°±μ„ κ΅¬ν˜„ν•˜κ³ μž ν•˜λŠ”λ°,
μ–΄λ–»κ²Œ μ‚¬μš©ν•  수 μžˆλŠ”μ§€ μ•Œ 수 μžˆμ„κΉŒμš”?

`ext` js import file naming bug.

Thank you for development this project. πŸ‘

I found one bug, about importing js file.

when setting exts in nuxt.config.js,

//..
    tui: {
        editor: {
            stylesheet: {
                contents: '~/assets/css/custom-tui-content.css',
                codeHighlight: '~/assets/css/custom-highlight.css',
            },
            exts : ['uml', 'chart', 'table']
        }
    }
//..

after build, look at the following file
.next/tui/editor.client.js

///...
import('tui-editor/dist/tui-editor-extuml')
import('tui-editor/dist/tui-editor-extchart')
import('tui-editor/dist/tui-editor-exttable')
///...

The file name is imported in lowercase.

The real file name is

  • tui-editor-extChart.js
  • tui-editor-extTable.js
  • tui-editor-extUML.js

so, i ran build, have the following bug.

Module not found: Error: Can't resolve 'tui-editor/dist/tui-editor-extchart'
Module not found: Error: Can't resolve 'tui-editor/dist/tui-editor-exttable'
Module not found: Error: Can't resolve 'tui-editor/dist/tui-editor-extuml'

chat not working

@firefanda
HI. I use @tui-nuxt/editor
But chat not working in nuxtjs.
what settings is mistake?

Version:
1.0.0-alpha.4

nuxt.config.js

  tui: {
    editor: {
      exts: ['colorSyntax','scrollSync', 'chart', 'table', 'uml'],
      stylesheet: {
        editor: 'tui-editor/dist/tui-editor.min.css',
        contents: 'tui-editor/dist/tui-editor-contents.min.css',
        codemirror: 'codemirror/lib/codemirror.css',
        codeHighlight: 'highlight.js/styles/github.css',
        colorPicker: 'tui-color-picker/dist/tui-color-picker.min.css'
      }
    }
  },

and editor.vue

<template>
<TuiEditor
          v-model="editorText"
          mode="markdown"
          preview-style="vertical"
          height="500px"
          :options="editorOptions"
        />
</template>
  data() {
    return {
      editorText: '# This is Viewer.\n Hello World.',
      editorOptions: {
        useCommandShortcut: true,
        usageStatistics: false,
        exts: [
          {
            name: 'chart',
            minWidth: 100,
            maxWidth: 600,
            minHeight: 100,
            maxHeight: 300
          },
          'scrollSync',
          'colorSyntax',
          'uml',
          'mark',
          'table'
        ]
      }
    }
  },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.