Hi,

I just have follow the instruction to install the Easychart feature and all dependencies. That works fine, except because the body fields disappears if the filter "EasyChart" is enabled in the text format settings. I've the following filter enabled:

  • Display any HTML as plain text - unchecked
  • Limit allowed HTML tags - unchecked
  • Insert Easychart charts - checked
  • Convert URLs into links - checked
  • Convert line breaks into HTML (i.e.
    and

    ) - checked

  • Correct faulty and chopped off HTML - unchecked

And the following Filter processing order:

  • Convert line breaks into HTML (i.e.
    and

    )

  • Insert Easychart charts
  • Convert URLs into links

However, if the body contain a chart embedded via wywiwyg, I can read the text of the body.

If Insert Easychart charts is unchecked, I can read again the content provided by the body field but cannot read the chart, only [[chart-nid:123,chart-view-mode:teaser]].

Is there a way to know what's the most recommended order in the text format?

Thanks!

Comments

afdiaz created an issue. See original summary.

afdiaz’s picture

Issue summary: View changes
thomas_rz’s picture

Hi Alexander,

You've reported this as a version 7.x-2.x-dev issue.
Did you test the latest release (7.x-3.6) too?

danheisel’s picture

This is the same issue I am experiencing.

https://www.drupal.org/node/2695703

I had to create two text formats. One for content without a chart embed and one with a chart embed. Not very elegant. I am using the latest dev version and still experience the issue.

ice70’s picture

Hi,

this may or may not be related - I have roughly the same set up mentioned in the original post [but Convert line breaks into HTML - unchecked].

I found all my custom blocks using the full html text format no longer displayed. Once I disabled Insert Easychart charts all blocks returned.

thank you
ice70

thomas_rz’s picture

Assigned: Unassigned » jyve
jedsaet’s picture

Just tested the 3.x-dev version on a fresh install, and the issue is still there (I even tried taking out all the other filters in case something else was conflicting with this one).

The body field will be displayed if there is a chart inserted.

kansaj’s picture

I could confirm the problem. It appears only if there is not inserted chart. It seems that _process should always return some callback. So in my case the modification below, worked well:

/**
 function easychart_wysiwyg_filter_easychart_process($text, $filter, $format, $langcode, $cache, $cache_id) {
  if (preg_match('/\[\[chart-nid:(\d+),chart-view-mode:(\w+)\]\]/', $text, $matches)) {
    return preg_replace_callback('/\[\[chart-nid:(\d+),chart-view-mode:(\w+)\]\]/', '_easychart_wysiwyg_render_node', $text);
  }
  // Support for v2 of the placeholder.
  else {
    return preg_replace_callback('/\[\[chart-nid:(\d+)\]\]/', '_easychart_wysiwyg_render_node', $text);
  }
}

  • jyve committed 0ff523f on 7.x-3.x
    Issue #2747991: By enabled filter "EasyChart", content of body field is...
jyve’s picture

Status: Active » Fixed

Thanks for pointing in the right direction kansaj. This issue has now been fixed in the dev version.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.