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.
Add Support for CKEditor. Ideally, the editor should be given some sort of graphic representation of the Insert Field. If that is not possible, some sort of placeholder would be ideal.
Comments
Comment #1
mollybee CreditAttribution: mollybee commentedOmg, I love this module. CkEditor/WYSIWG module support would solve so much in my life!
Comment #2
Tsjippy CreditAttribution: Tsjippy commentedSo is this not possible at all?
Or would it work if you insert the code in the plain text editor?
Comment #3
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commented#2,
If you insert into a plain text area it should work just fine. The problem is Insert Field UI, when you click "Insert" on a field, nothing happens when the text area has CKEditor running.
As long as the field token
<!-- field_name[delta] -->
gets saved somehow, Insert Field should insert the field properly. I think CKEditor might strip this out though if it gets enabled before saving the entity.Comment #4
Tsjippy CreditAttribution: Tsjippy commentedHmm it seams not working.
I have a filed called "FotoShow". I changed to plain text editor, added
"<!-- FotoShow[0] -->"
and saved.Nothing happened. I do not see the text in the normal editor, but when I change back to the plain editor I see the following:
Comment #5
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commented#4,
I believe the plain text filter format strips out all HTML including HTML comments. Can you verify the output in view source? are you getting the html comments on output?
Comment #6
Tsjippy CreditAttribution: Tsjippy commentedIn view source I get this:
Comment #7
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commented#6,
How did you get a field with the machine name "FotoShow" ? did you create it programmatically? or via a module? or is it
field_FotoShow
?Comment #8
Tsjippy CreditAttribution: Tsjippy commentedYou are right, I am using the wrong names, but the right names do not work either.
In "content types" -> "basic page" I have several fields
One of them has the friendly name FotoShow and machine name field_fotoshow it is an image field
Another has Newsletters field_nieuwsbrief it is a file field.
I have created pages based on that, so the field should be filled.
I changed the code, but it is still not working:
Comment #9
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commented#8,
I'm assuming you are not using Panels and/or Display Suite?
If not, you're Manage Display page should look something like this:
https://www.drupal.org/files/project-images/manage-display_0.png
Correct?
Comment #10
Tsjippy CreditAttribution: Tsjippy commentedcorrect, this is how it looks.
http://1drv.ms/1cBQwFl
Comment #11
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commented#10,
It doesn't look like the fields are indented to the right of body (i.e. "body" is the parent). What theme is this? The only theme I tested it on is Seven.
Comment #12
Tsjippy CreditAttribution: Tsjippy commentedI am on bartik
Comment #13
davidwbarratt CreditAttribution: davidwbarratt as a volunteer and commented#12,
What happens when you drag the
field_fotoshow
to the right? If that doesn't work, can you try enabling the Seven admin theme and see if that fixes the problem?Comment #14
Tsjippy CreditAttribution: Tsjippy commentedI have done that, but nothing changed.
I changed the theme to seven, but that did not work either.
I have also the module "insert" enabled.
Could that be the problem?
Am I missing something else?
Comment #15
OFF CreditAttribution: OFF commentedIs it possible?
Comment #16
man-1982 CreditAttribution: man-1982 as a volunteer commentedAdvanced module for insert field. Added plugin to Ckeditor for insert and edit field.
1.Go to /admin/modules and find insert_field_ckeditor
2. Next step, goto /admin/config/content/ckeditor and slect our ckeditor profile
3. Further, we must find toolbar
4. Move in section Plugin and enabled Plugin for module "Insert field"
SAVE IT
Next, go to our content and click to button
We can write field_name into field.
It hightlight field gray color inserting throuth dialogs.
When we click right button on the gray div then get popup menu with item "insert field"
PATCH
Comment #17
davidwbarratt CreditAttribution: davidwbarratt as a volunteer commented