Code Monkey home page Code Monkey logo

Comments (5)

ppaysant avatar ppaysant commented on August 17, 2024

Hmm... some more tests seems to show vuejs / tuieditor as the problem instead of undescorejs / tuieditor. Anyway, I can't use tui inside my application for now, and will hear any advice with joy !
I'm using vuejs 2.5.0

from tui.editor.

kyuwoo-choi avatar kyuwoo-choi commented on August 17, 2024

I'll try reproduce the problem. meanwhile any detail will be welcomed

from tui.editor.

ppaysant avatar ppaysant commented on August 17, 2024

Thank you for your answer, @kyuwoo-choi !

Here are some code extracted from my app :

The template (php / twig) part which will contain the editor (#editorZone).

            <div class="box-body">
                <div id="editorVue" data-id="{{ pageId }}" v-cloak>
                    <label>Titre</label>
                    <div class="form-group">
                        <input class="form-control" :value="title" @input="update">
                    </div>

                    <label>Contenu</label>
                    <div class="form-group" id="editorZone">
                    </div>
                </div>
            </div>

The div "#editorVue" is my root vuejs instance.

The loaded js (yes, I'm not using webpack, nor any bundler :) ). The <script> markups are written just before </body>.

<script src="/js/libs/jquery-2.2.4.min.js"></script>
<script src="/js/libs/bootstrap.min.js"></script>
<script src="/js/libs/vue.js"></script>

<script src="/js/libs/tui/lib/tui-code-snippet.js"></script>
<script src="/js/libs/tui/lib/markdown-it.js"></script>
<script src="/js/libs/tui/lib/toMark.js"></script>
<script src="/js/libs/tui/lib/codemirror.js"></script>
<script src="/js/libs/tui/lib/highlight.pack.js"></script>
<script src="/js/libs/tui/lib/squire-raw.js"></script>
<script src="/js/libs/tui/tui-editor.js"></script>

<script>
    $('#editorZone').tuiEditor({
        initialEditType: 'markdown',
        previewStyle: 'tab',
        height: '300px'
    })
    .tuiEditor('setValue', '# Hello');
</script>

<script src="/js/libs/underscore-min.js"></script>
<script src="/js/editor.js"></script>

editor.js is a (very simple) custom script that manages my vues js instance.
If I comment vuejs and editor.js, tui-editor is ok, else tui displays but does not react.
Commenting only vuejs is also ok for tui, but with errors (shown in console) as editor.js needs it. (That lets me think editor.js is not the problem).

If you need specific information, please do not hesitate to ask. I will give them happily :)

from tui.editor.

sebastiaanluca avatar sebastiaanluca commented on August 17, 2024

Unable to use it here too. WYSIWYG editor works somewhat fine, but cursor doesn't show in Markdown view and scrolling doesn't work. Typing inserts data at random positions, not very consistent.

from tui.editor.

sohee-lee7 avatar sohee-lee7 commented on August 17, 2024

@ppaysant
Sorry for the late reply. We release vue wrapper for tui.editor. Please use this wrapper. If there is some problem when using vue wrapper, leave issue in the vue wrapper of tui.editor.
I will close this issue.

from tui.editor.

Related Issues (20)

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.