Using CKEditor ACF, atoms are spoiled when toggling source view or saving. I have the "Scald Drag and Drop integration - CKEditor 4 widgets" plugin enabled but the button doesn't appear. Even if I add the button to the toolbar manually, it doesn't seem to help.
The instructions advise to "set up correctly (or disabled)" (https://www.drupal.org/node/1775718).
Another solution is to add code to ACF "Extra allowed content" (https://www.drupal.org/node/2237683#comment-10888422)
I found that if I add an allowedConfig property to editor.addCommand('atomProperties') the ACF worked properly.
I'm using Drupal 7.43, Scald 7.x-1.x-dev (2016-Mar-13) , CKEditor 7.x-1.17.
Comment | File | Size | Author |
---|---|---|---|
#5 | fixacf-2688638-5-7.43.patch | 687 bytes | nagy.balint |
| |||
#2 | fixacf-2688638-2-7.43.patch | 664 bytes | bwaindwain |
|
Comments
Comment #2
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedComment #3
martin_qSetting status to "needs review" to trigger the testing bot.
Comment #4
nagy.balint CreditAttribution: nagy.balint commentedThanks for the patch!
What about the allowedContent: {}, in editor.widgets.add('dndck4', { is that supposed to stay empty? or maybe its enough to add something there?
Also make sure that the same change is used here https://www.drupal.org/node/2664350
So div span figure, and not just div.
Comment #5
nagy.balint CreditAttribution: nagy.balint commentedHere is a new patch with the additional tags.
It seems to work for me after i properly cleared my browser cache.
Since the current version does not work at all if ACF is enabled, any improvement is good.
Comment #7
nagy.balint CreditAttribution: nagy.balint commentedComment #8
scotwith1tSorry to reopen, but this isn't working for us. I have ACF on, DnD into body, save, everything's fine. Edit the node and the scald bits are stripped out of the markup except for the legend (
tag around it). I'm using the latest dev with the patch above...I don't see any of these attributes in the markup at any point in the process (data-scald-sid,data-scald-align,data-scald-context,data-scald-options,data-scald-type). What might be wrong?
Markup when I DnD inside the CKEditor window looks like this:
When it's saved, it looks like this in the node page:
Then I try to edit, all I'm left with in CKEditor is:
Comment #9
nagy.balint CreditAttribution: nagy.balint commentedMake sure that your browser cache is completely cleared by opening the console while using the page for example.
Since for me it worked fine, I will likely need access to a test site having this issue.
Comment #10
nagy.balint CreditAttribution: nagy.balint commentedAlso make sure that the edit atom properties button is added in ckeditor configuration, since this patch will only work if that button is there.
Comment #11
scotwith1tYES! Don't know which did it, but it worked. The atom properties button was missing from 1.6, is this something that has been added back to the latest dev? Are we close to a 1.7 release? Thanks as always!
Comment #12
scotwith1tComment #13
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedre button missing, see https://www.drupal.org/node/2688646