Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ovann86

    (@ovann86)

    Hey,

    Im thinking of two possible issues.

    JavaScript conflict – do you know how to use FireFox and Firebug to check for error messages? They will appear under the console tab in firebug.

    Dodgy CSS / CSS conflict – I can see on my demo site that the plugin is still using a version of the CSS that forces the character count to display below the WYSIWYG field. What I found a few months ago is that some browsers dont handle this very well, and where I use this plugin in production I changed it so the count displays in the grey box at the bottom of the editor.

    The demo link is below, you should see the character count on this page but I suspect you wont because it’s the second issue, dodgy CSS that some browsers may not like.

    https://demo.itsupportguides.com/gravity-forms-wysiwyg-ckeditor/single-page-form/

    This is what you should be seeing: https://i68.tinypic.com/2888l92.png

    Are you able to determine which issue you’re having? Failing that, can you provide me a link (you can use a temporary paste bin if you feel more comfortable).

    Plugin Author ovann86

    (@ovann86)

    Hey,

    I’ve assumed it’s the second issue – CSS, and released version 1.6.1 that should fix it.

    After installing the update you may have to refresh your page and/or clear cache plugins before you see the updated CSS.

    Thread Starter pivotpoint

    (@pivotpoint)

    Thanks for the reply. I updated the plugin to v1.6.1, but am still not getting the character count working.

    I checked Console in Chrome’s DevTools, and got this:

    Uncaught ReferenceError: changed is not defined

    in this part of the code:

    ‘ for (var i in CKEDITOR.instances) {
    CKEDITOR.instances[i].on(‘change’, function() {
    CKEDITOR.instances[i].updateElement();
    changed = true;
    });
    }
    });

    Does that help in any way? The form is accessible to certain registered users.. I could get you set up as one, if that would help.

    Thanks,

    Plugin Author ovann86

    (@ovann86)

    that sounds familiar, not sure why though.

    Looking at the paste, I can see it’s missing ‘changed’ being defined, ie

    var changed;

    But I think that happens earlier on, who knows !

    If you can shoot the details and where to go via [email protected] I’ll log in and take a look. See if I can work out what’s going on.

    The weird thing is, the whole plugin uses extreme amounts of JavaScript – so it’s funny it stopped here and not earlier on. That is, the CKeditor loads.

    Plugin Author ovann86

    (@ovann86)

    Hey,

    Not sure if you’ve tried emailing me yet or not, but it looks like that email address isnt working any more… or the destination is blocking it as spam.

    Give this one a shot instead: [email protected]

    I wont be able to have a look for another 12 hours, but will let you know when I have.

    Plugin Author ovann86

    (@ovann86)

    Hey,

    Just letting you know that I’ve just looked at this issue on my test environment and found that this issue is happening when the Gravity Forms Data Persistence Add-On Reloaded plugin is installed.

    I needed to add

    var changed;

    To the start of my JavaScript because I can’t assume the order the code is loaded into the page.

    Should be all cleared up in the next release – Version: 1.6.5

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘character counter not working when CKEditor is enabled’ is closed to new replies.