Jump to content

TinyMCE table not saving


alejandro
 Share

Recommended Posts

Hello,

I´ve created a textarea field, type TinyMCE. When inserting a table and then saving the page, it disappears and it´s converted to a simple paragraph:

Before saving:

post-1623-0-12621800-1381607095_thumb.jp

After saving:

post-1623-0-31044900-1381607084_thumb.jp

This happens with CKeditor as well, so maybe I´m missing something about the configuration of the field itself?

Thanks.

Link to comment
Share on other sites

Well, about the problematic field, finally I deleted it and created a new one and the problem is gone. Don´t know what was the fault with it, maybe some misconfiguration in the database ¿?

Agree with you about tables + editor. I don´t like/trust the user to have too much control about the layout/format of the content. I found your module when searching for a different approach and think is quite a better solution, but the info I need to output has many combinations. A list of prices for products, but sometimes there is a price for several products (pages), promotions for 1 product or several... for example:

post-1623-0-33738900-1381818541_thumb.jp

The info comes from different product pages.

So in the end i thought it would be easier to just let the user input a table. Mmm, still undecided.

Thank you for your help.

Link to comment
Share on other sites

I think it's do-able with my module. With a few changes to the <thead> and a little modification in the loop.

if($this->thead) {
	$out .= "<thead><tr>";
	$out .= "<th colspan='{$columns}'>".wire('pages')->get($pid)->fields->get($fid)->label."</th>";                 $out .= "</tr></thead>";
}

ps, the module is intended as starting point. That's why I never added it to the module directory.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...