drupal 7.22, Home » Administration » Configuration » Content authoring » Text formats

check: convert line breaks into HTML (i.e. <br> and <p>)

message: "Invalid domain default. Please, enter a comma separated list of valid domain names."

works ok for tinymce...



TwoD’s picture

Issue summary: View changes

Fixed tags getting rendered

TwoD’s picture

Status: Active » Postponed (maintainer needs more info)

That page belongs to Drupal Core's text format settings and has nothing to do with Wysiwyg module or how editors treat line breaks.

Where is that message shown and when?

What exactly is working with TinyMCE but not in CKEditor?

Line break conversion is done serverside, during content rendering, and is not something which normally concerns editors since they already know where to place p and br tags. I strongly recommend not using the "Convert line breaks into HTML"-filter together with WYSIWYG editors for that reason. The serverside filter can not tell the difference between line breaks indended to indicate paragraphs or breaks and line breaks just meant to make the source code pretty.

There is a module called Wysiwyg Linebreaks which is useful if you already have a bunch of content using line breaks instead of the proper tags and don't want to go through it all before switching to using an editor.

TwoD’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Without further details about the problem I can only close this issue. Please re-open it if you can provide the requested information.

TwoD’s picture

Issue summary: View changes

Fixed typo

mattew’s picture

Component: Editor - CKEditor » Miscellaneous
Issue summary: View changes
Status: Closed (duplicate) » Active
23.11 KB

I encountered the same issue. I didn't know where it came from because I've got only some few filters activated.
When I look at the code, I found the origin of the message in the WYSIWYG Filter module, wysiwyg_filter.admin.inc:

  // *** validate nofollow_domains ***
  $nofollow_domains = array_filter(explode(',', preg_replace('#\s+#', ',', $values['nofollow_domains']))); // form2db
  foreach ($nofollow_domains as $nofollow_domain) {
    if (!preg_match('#^([a-z0-9]([-a-z0-9]*)?\.)+([a-z]+)$#i', $nofollow_domain)) {
      form_set_error('nofollow_domains', t('Invalid domain %domain. Please, enter a comma separated list of valid domain names.', array('%domain' => $nofollow_domain)));

There is a field in WYSIWYG Filter module with the parameter that generate this error:
WYSIWYG nofollow parameter

For me, this filter IS NOT activated, but the message appear!
Solution for me:

  1. check the WYSIWYG Filter,
  2. empty the field,
  3. uncheck the filter,
  4. save.

I'm going to post on the proper module about that, and provide a link here as a "duplicate".

mattew’s picture

Status: Active » Closed (duplicate)