problem when dragging ckeditor image

Asked

Viewed 179 times

1

I’m starting to use the plugin ckeditor, I can usually send an image to the editor, but when I drag the image to another place, it disappears, and the warning of this second image here, when I copy and paste an image in the editor, is the same problem. Someone’s had this problem before?
inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

My file config.js is like this:

CKEDITOR.editorConfig = function( config ) {
    config.extraPlugins = 'uploadimage';
    config.uploadUrl = '/img';
    config.inlinesave = {
        postUrl: '../data'
    };
    config.mathJaxLib = '//cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-AMS_HTML';
};

Does anyone know what it can be?

1 answer

0


Hello, I use the version of Ckeditor 4, I have not had this problem since I started using this code below:

in my script I use this call to inform the textarea:

        CKEDITOR.replace( 'texto1', {
            customConfig: 'config.js'
            ,on: {
                instanceReady: function( ev ) {
                    // Output paragraphs as <p>Text</p>.
                    abreCarregando();
                    this.dataProcessor.writer.setRules( 'p', {
                        indent: true,
                        breakBeforeOpen: true,
                        breakAfterOpen: false,
                        breakBeforeClose: false,
                        breakAfterClose: true
                    });
                }
            }
        });

In config I have this information to also improve the interpretation:

 config.allowedContent = true;
    config.enterMode = CKEDITOR.ENTER_BR;

This way I always move the images from one position to another without problems, try to use

  • what has in this function "opening()"?

  • is a function I put to open an image style ajax loading... until it finishes loading the editor in the textarea

  • Wow, pass me her script please :)

  • follow [https://jsfiddle.net/marsites/54bj0sh1/]

  • The link is not accessible here for me :(

  • Ah, I got it, the brackets went along with the link, then it was invalidated

  • http://jsfiddle.net/marsites/54bj0sh1/

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.