Hi,
if you use a wysiwyg editor like ckeditor and edit a section, the content becomes doubled. i ended up having the post doubled, i mean the content is doubled. its like the content is dublicated and attached to the end.
can someone confirm that?
Hi,
if you use a wysiwyg editor like ckeditor and edit a section, the content becomes doubled. i ended up having the post doubled, i mean the content is doubled. its like the content is dublicated and attached to the end.
can someone confirm that?
Comments
Comment #1
marcoka commentedkicked wysiwyg to test it. still appears, but only sometimes.
Comment #2
marcoka commentedanyone? this is a seriouse issue.
Comment #3
NoRandom commentedI'm experiencing a similar problem without any kind of WYSIWYG editor.
If I edit a section everything is OK. But if I fully edit the node the first part of the node appears doubled in the text box. Weird thing is doubled content comes from a previous revision.
For example I have:
I edit this section adding three dots at the beginning:
Everything seems to be fine. I fully edit the node and I see this:
Could it be a cache problem?
Comment #4
oz_an commentedI found that content doubles if you edit the section within the node teaser limits. The module correctly saves the node_body column of the node_revisions table, but node_teaser doesn't change (or it is of old rev). If I understood correctly, when we click the main node edit link, if the teaser is different from the node_body, drupal loads the teaser first and body after. Until now actually it is not doubled in the database. If you click save then you are actually saving all the form's content to the node_body field.
Actually it must be drupal's task to set the new teaser. It must be the module's form submit but I don't know drupal that much.
Anyway, set your teaser length to minimum or if you edit with edit_section edit nodes that are longer than the teaser and edit the sections that are after the teaser. That's my solution for now :)
Comment #5
oz_an commentedI found another sol , the module should set the teaser along with the body. So I added the below line into the function 'edit_section_form_submit' before the 'node_save($node)'
$node->teaser = node_teaser($node->body, $node->format);Comment #6
NoRandom commentedThe modification seems to work for me, oz_an.
Comment #7
oz_an commentedgood to know, it works for me too.
Comment #8
marcoka commentedi am going to test this too.
edit: seems to work for me so far.
Comment #9
oz_an commentedI think we have an abandoned module here, no word from maintainer
Comment #10
NoRandom commentedI think so.
Anyway this module doesn't have many Issues opened and the modification is really simple, everyone should be able to be done manually by everyone.
Regards.
PS.- I think the module should contain a configurable page where you could add your own regex expresions to choose where you want [edit] link appears. I've modified the module to work with my custom BB code.
Comment #11
oz_an commentedI had some issues for my custom regex but it not belongs here, i'm opening a new issue could you please help?
Comment #12
NoRandom commentedI don't know much regex, only the basics and I usually solve my problems with the try-error method. Basically I've created my custom bb code wich uses tags like:
[b]...[/b], [url=...]...[/url], etc...
Anyway, have you tried http://www.regexbuddy.com/ (it works well but may it's a bit expensive for a regular user).
I've just found http://sourceforge.net/projects/regexpeditor/ wich is free and seems very useful too.
Regards.
Comment #13
marcoka commentedi wrote that it worked.....i was editing some very big content. And now agin its beeing doubled. still.
Comment #14
oz_an commentedr u sure you add the code before the node_save line of the module.
Comment #15
marcoka commentedyes, i am able to do such a little thing :), i did that. As is said it was working good, only on this special big node it was not working
ok i think i got it. This special node was starting with
<h1>foo</h1> and ending with <h1>foo</h1>, i think that confused the string extraction.Comment #16
oz_an commentedSorry, of course you are able:). But I'm editing content extensively and had no problem, so I was surprised. Glad you solved. So, I'll be careful with that kind of content starting and ending same.
Comment #17
marcoka commentedis this fixed in the latest dev?
Comment #18
pifagor