Posted by e-anima on July 13, 2010 at 7:08am
3 followers
Jump to:
| Project: | Edit section |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
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
#1
kicked wysiwyg to test it. still appears, but only sometimes.
#2
anyone? this is a seriouse issue.
#3
I'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:
FIRST SECTION HEADER
foo foo foo foo foo
I edit this section adding three dots at the beginning:
FIRST SECTION HEADER
...foo foo foo foo foo
Everything seems to be fine. I fully edit the node and I see this:
FIRST SECTION HEADER
foo foo foo foo foo
FIRST SECTION HEADER
...foo foo foo foo foo
Could it be a cache problem?
#4
I 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 :)
#5
I 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);#6
The modification seems to work for me, oz_an.
#7
good to know, it works for me too.
#8
i am going to test this too.
edit: seems to work for me so far.
#9
I think we have an abandoned module here, no word from maintainer
#10
I 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.
#11
I had some issues for my custom regex but it not belongs here, i'm opening a new issue could you please help?
#12
I 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.
#13
i wrote that it worked.....i was editing some very big content. And now agin its beeing doubled. still.
#14
r u sure you add the code before the node_save line of the module.
#15
yes, 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.#16
Sorry, 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.
#17
is this fixed in the latest dev?