Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
CKeditor hide "Show summary in full view" checkbox (using a display:none css property) which prevents having a teaser different from the full body.
Thanks
Laurent
Comment | File | Size | Author |
---|---|---|---|
#8 | ckeditor-665108.patch | 1.13 KB | mephir |
#1 | ckeditor-665108.patch | 783 bytes | mephir |
Comments
Comment #1
mephir CreditAttribution: mephir commentedComment #2
wwalc CreditAttribution: wwalc commentedWorks, but I think we could add also
in Drupal.ckeditorOff when teaser exists, but is empty ( !(data.length>1) )?
Comment #3
mephir CreditAttribution: mephir commentedchanges commited to cvs
Comment #4
Agence Web CoherActio CreditAttribution: Agence Web CoherActio commentedWorks perfectly
Thanks
Laurent
Comment #5
Agence Web CoherActio CreditAttribution: Agence Web CoherActio commentedHi again,
I'm re-opening the issue because the fix brought a side-effect.
I can now see the checkbox. If I untick it and save, this works fine (teaser not displayed with full view).
However when I edit again the node, the checkbox comes ticked. So when I save, my initial set up is erased (this means that I have to remember to untick everytime).
Any way to fix this?
Many thanks
Laurent
Comment #6
Agence Web CoherActio CreditAttribution: Agence Web CoherActio commentedAny idea where the issue can come from?
Thanks
Laurent
Comment #7
wwalc CreditAttribution: wwalc commentedComment #8
mephir CreditAttribution: mephir commentedPatch attached.
Comment #9
Agence Web CoherActio CreditAttribution: Agence Web CoherActio commentedTested.
Works perfectly
Many thanks
Laurent
Comment #10
mephir CreditAttribution: mephir commentedChanges commited to cvs
Comment #12
mErilainen CreditAttribution: mErilainen commentedCould somebody describe what is this patch supposed to do? I can hide the checkbox with CSS, using 1.0 version of the module. Or was that the fix?
Anyway, I think it should be an option in the module to hide the button. It's not always useful and will just confuse most of the users.
Comment #13
mephir CreditAttribution: mephir commentedPatch was released before merging changes into CVS repository and release 1.0 version, so now you don't need patch.
Comment #14
pagach CreditAttribution: pagach commentedThe #8 patch did not work for me, so i changed
var ch_checked = teaser.checkbox.attr('checked');
into
var ch_checked = teaser.checkbox[0].checked;
and
teaser.checkbox.attr('checked', 'false');
into
teaser.checkbox[0].checked=ch_checked;