Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-32533

Sakai Preview plugin gives an error if used in source mode

    XMLWordPrintable

    Details

    • Test Plan:
      Hide
      • Click source mode in any CKEditor
      • Click preview

      Error in javascript console

      Show
      Click source mode in any CKEditor Click preview Error in javascript console

      Description

      If you use the sakaipreview feature (added in SAK-32421) when in source mode it throws this error in the javascript console. This error is from the sakaipreview/plugin.js

      Uncaught TypeError: Cannot read property 'getType' of null
          at getHighlightedText (plugin.js?t=G14E:68)
          at isHighlight (plugin.js?t=G14E:81)
          at CKEDITOR.command.exec (plugin.js?t=G14E:84)
          at CKEDITOR.command.exec (ckeditor.js?version=DEMO:186)
          at a.execCommand (ckeditor.js?version=DEMO:253)
          at CKEDITOR.ui.button.CKEDITOR.tools.extend.click (ckeditor.js?version=DEMO:670)
          at Object.execute (ckeditor.js?version=DEMO:671)
          at ckeditor.js?version=DEMO:672
          at ckeditor.js?version=DEMO:31
          at Object.callFunction (ckeditor.js?version=DEMO:31)
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    paytengiles Payten Giles
                    Reporter:
                    jonespm Matthew Jones
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved:

                      Git Integration