No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    how to insert image in editor wyswg?

    Framework
    4
    8
    1407
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      donvie last edited by

      how to insert image in editor wyswg?

      1 Reply Last reply Reply Quote 0
      • A
        adhityaramadian last edited by

        Can anyone answer this problem? because I have the same problem

        1 Reply Last reply Reply Quote 0
        • nothingismagick
          nothingismagick last edited by

          At the moment you will have to handle all of this on your own. Basically you need to attach blobreader functionality to the onpaste / ondrop event to the editor. There is a plan to make an advanced WYSIWIG - but we have a few other things that are top priority at the moment. Maybe late this summer / early Fall we will find time to do it.

          Its not exactly trivial, because you will probably also want to upload the image to your server and then return the url from the server. I did some work on something similar for v0.17 - the approach is still the same. The front-end code on that project is GPL, so if you use it you will be bound to retain the GPL license and the JSDoc function headers. If you make adaptations you will also have to contribute that back to utopian-io. Anyway, here you go:

          https://github.com/utopian-io/colony/blob/develop/packages/client/src/components/form/wysiwyg.vue

          qyloxe 1 Reply Last reply Reply Quote 0
          • qyloxe
            qyloxe @nothingismagick last edited by

            @nothingismagick @adhityaramadian @donvie
            Well, if you only want to embed base64 image than there is a simple solution for this editor in here:

            https://forum.quasar-framework.org/topic/2019/how-to-insert-image-in-editor-wysiwyg/7

            If there are plans to write another WYSIWYG editor from scratch, please consider wraping this excellent Vue editor as an App Extension:

            https://tiptap.scrumpy.io/

            1 Reply Last reply Reply Quote 0
            • nothingismagick
              nothingismagick last edited by

              @qyloxe - you can wrap it as an extension yourself! Would love to see what you can do with that!

              qyloxe 1 Reply Last reply Reply Quote 0
              • qyloxe
                qyloxe @nothingismagick last edited by

                @nothingismagick definitely I could wrap that or help in wrapping, but I do not want to have three WYSIWYG editors in Quasar - old and simple, new advanced written from scratch by core team, and new AE based on tiptap and maintained by community. It would be counterproductive obviously.

                1 Reply Last reply Reply Quote 0
                • nothingismagick
                  nothingismagick last edited by

                  If there are plans to write another WYSIWYG editor from scratch, please consider wraping this excellent Vue editor as an App Extension: https://tiptap.scrumpy.io/

                  I thought you were suggesting just that. If you are indeed concerned about what gets into Quasar, then I invite you to join us on the discord server and continue the discussion with us there. At any rate, we won’t be incorporating any 3rd party components into quasar core. The only way to do this would be to make an app-extension, and the core team is entirely swamped at the moment.

                  qyloxe 1 Reply Last reply Reply Quote 0
                  • qyloxe
                    qyloxe @nothingismagick last edited by

                    @nothingismagick said in how to insert image in editor wyswg?:

                    At any rate, we won’t be incorporating any 3rd party components into quasar core. The only way to do this would be to make an app-extension, and the core team is entirely swamped at the moment.

                    Funny, that’s exactly what I thought, and was surprised when you wrote about planned advanced WYSIWYG editor.

                    I will be needing tiptap in a few weeks. Firstly I’ll see how it works as a simple Vue component, but I would prefer to have it in AE version, because with AE you could deal with server/backend configuration (ie uploads, collaboration, endpoints). With AE mechanics, I will need some help. Will be in touch then. Thanks.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post