Does this module works with wysiwyg editors? I'm trying to use it with wysiwyg module and TinyMCE amb it doesn't look to work together. Is there any possibilty to have both modules work together?

Comments

jorditr’s picture

Anyone? :-)

tammo’s picture

Too bad, I am also experiencing errors with this module in conjunction with Wysiwyg/CKEditor. The module does count dynamically, but once the allowed # of characters has been reached, the dit screen freezes and cannot be edited anymore. You have to edit the source, which is a no-go area for my users.

I am willing to test, but my capabilities are not programming, unfortunately...

Tammo

PS: please also test this module for the use case where people do not just type in the text, but do a paste action (with more than the allowed # of characters)

tammo’s picture

I tested a little further: the editor "freeze" occurs when you indicate the "Force text truncate", not when you leave the check box empty.

I guess it will be OK to leave the "Truncate HTML" check box checked... In my website this does not produce an error.

leksat’s picture

Status: Active » Closed (cannot reproduce)

I tried to reproduce the problem, but got nothing. All things work as expected with any field configuration (I mean "Force text truncate" and "Truncate html" flags).

If someone can reproduce the errors, please reopen the issue and provide more info.

3magnus’s picture

Title: Wysiwyg breaks » Wysiwyg editors break Maxlength counter
Category: bug » support
Status: Closed (cannot reproduce) » Active

It's really simple:

  1. Fresh Drupal installation
  2. Install and enable Maxlength
  3. Test it (working)
  4. Install and enable Wysiwyg with any editor
  5. Configure Wysiwyg to load the editor on the same textarea used to test Maxlength
  6. There you go! Character counter stuck.

More details?

P.S.: With markItUp the counter does keep working, but that is not a Wysiwyg editor, as it shows the HTML markup to the user.

cafuego’s picture

Seems to work fine with TinyMCE.

3magnus’s picture

True! Never tested it.

If you need/want to see both modules working, with a wysiwyg editor, TinyMCE 3.5.8 is a viable option (and only, for now).

Thanks @cafuego!

brandy.brown’s picture

I'm using CKEditor and have the truncate HTML option enabled. The js counter for remaining characters is completely inaccurate and unpredictable.

sk33lz’s picture

The issue can be reproduced with the following module combinations.

Drupal 7.22
ckeditor 7.x-1.13
maxlength 7.x-3.x-dev (Sept 30th, 2013)

It's as if it keeps count until you press the space bar to goto the next word, then the count resets at whatever you set as the maximum on the field. If you disable the WYSIWYG on the field, the counter works just fine.

msningrum’s picture

I am using Maxlength 7.x-3.0-beta1 and CKEditor 7.x-1.13, and having the same issue

khaled.zaidan’s picture

Issue summary: View changes

@sk33lz (and possibly @Ningy)

Have a look at the patch i submitted for this issue in comment #2:
#2267849-2: CKEditor - Counter flashes and then re-displays max character limit while typing

it might fix the issue you're having (that is, if you are still having it now after 9 months!)

cedewey’s picture

Status: Active » Closed (duplicate)