Closed (duplicate)
Project:
Wysiwyg
Version:
6.x-2.4
Component:
Editor - CKEditor
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2011 at 09:03 UTC
Updated:
14 Apr 2012 at 13:39 UTC
Hi All,
I have created a CCK textfield and set a default value... My default value does not seem to get recognized unless I turn off the the rich text editor and just use plain text... even if I go to the field and try to edit it manually I still am not able to get it to save the data in the field with wysiwyg ckeditor editor enabled... has anybody else come across this and perhaps a fix?
The body field works fine... just not cck fields for some reason...
Cheers.
Comments
Comment #1
lennaert commentedI ran into the same issue. There is no error message and the CKEditor instance is shown and works, but it starts empty and when saving, the edited value was ignored and the original value used instead.
In my case the widget type for the fields was set to "Text field" instead of "Text area (multiple rows)". After I changed the widget type to "Text area (multiple rows)", the CKEditor instance started to correctly show the value on initialization, and the edited value gets saved instead.
Comment #2
twodI don't think CKEditor supports textfields, and neither does some other editors. There's another issue about this somewhere and I think I wrote some code to temporarily replace textfields with textareas and have the editor save the contents to it instead. Not sure if that code made it to a patch tho, but I can look for it this weekend.
Comment #3
freestone commentedCKEditor does work on Text fields. All you have to do is make the cck field "Filtered Text". In 6.x-1.11 I have found that I also have to Edit the CkEditor Profile and under Editor Appearance you have to set SHOW THE DISABLE/ENABLE RICH TEXT EDITOR TOGGLE: to Show. If you hide it then there is no opportunity to change the text field to rich text.
I would like to default the text field to rich text but so far I have not found a way to do so. The version I upgraded from had a default of rick text for the text field. What is even stranger is in 1.11 it starts as plain text but the toggle shows Switch to Plain Text and when you click it , it then changed to Rich text and displays CkEditor.
Ops I realize I posted this under WYSIWYG . I am using the CkEditor Module not WYSIWYG.
Comment #4
twodNo problem, both modules have the same problem ayway because CKEditor itself doesn't support textfields.
Comment #5
twodFound the older issue about this, marking as duplicate of #971632: CKeditor breaks on text field (not on field type Long Text).
Comment #6
freestone commentedI switched to WYSIWYG module and TinyMCE and BetterFormats and all works fine, including cck text fields that are set as filtered text.