Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-13323

Contribution widgets break when pasted into ckeditor

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.5
    • Fix Version/s: 4.4.0
    • Component/s: None

      Description

      The contribution widget code includes at least 2 instances on empty <span> tags which are later filled via javascript. However, these empty span tags are cleaned up by ckeditor. So, for example, if you paste the contribution widget into the introductory text on a contribution, it will fail with a javascript error as getElementById() will return null.

      So the easy fix here is to ensure that the automatically generated html widget code includes non-breaking spaces inside empty <spans>.

        Attachments

          Activity

            People

            • Assignee:
              ravish.nair Ravish Nair
              Reporter:
              torrance123 Torrance
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: