Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
4.02k stars 615 forks source link

Can't insert images #880

Closed david-colombo closed 5 years ago

david-colombo commented 5 years ago

Informations

I can't insert an image manually nor the image gets inserted after uploading. Trumbowyg Version 2.11.1

My Code

$('#blogtext').trumbowyg({
            lang: 'de',
            btnsDef: {
            // Create a new dropdown
            image: {
                dropdown: ['insertImage', 'upload'],
                ico: 'insertImage'
                }
            },
            btns: [
                ['viewHTML'],
                ['undo', 'redo'], // Only supported in Blink browsers
                ['formatting'],
                ['strong', 'em', 'del'],
                ['foreColor', 'backColor'],
                ['fontsize'],
                ['superscript', 'subscript'],
                ['link'],
                ['image'],
                ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
                ['unorderedList', 'orderedList'],
                ['horizontalRule'],
                ['removeformat'],
                ['historyUndo','historyRedo'],
                ['fullscreen']
            ],
            plugins: {
                upload: {
                    serverPath: 'php/upload-blog.php',
                    fileFieldName: 'image',
                }
            },
            autogrow: true,
            urlProtocol: true
        });
Alex-D commented 5 years ago

It's a known bug in 2.11. Please rollback to 2.10 for now, sorry.

Duplicates #878