Ticket #8473: 0001-fix-for-8473.patch

File 0001-fix-for-8473.patch, 1.2 KB (added by Michael Hopkins, 12 years ago)
  • _source/plugins/editingblock/plugin.js

    From af8043a1771d6856c07b86bf93c40c3c76308f2f Mon Sep 17 00:00:00 2001
    From: Michael Hopkins <mhopkins@dynactivesoftware.com>
    Date: Mon, 24 Oct 2011 15:17:57 -0600
    Subject: [PATCH] fix for #8473
    
    ---
     _source/plugins/editingblock/plugin.js |    7 ++++++-
     1 files changed, 6 insertions(+), 1 deletions(-)
    
    diff --git a/_source/plugins/editingblock/plugin.js b/_source/plugins/editingblock/plugin.js
    index 4d5cfe2..df3ad16 100755
    a b For licensing, see LICENSE.html or http://ckeditor.com/license 
    4444                                                function setData()
    4545                                                {
    4646                                                        isHandlingData = true;
    47                                                         editor.getMode().loadData( editor.getData() );
     47                                                        try{
     48                                                                editor.getMode().loadData( editor.getData() );
     49                                                        }catch(e){}
     50                                                       
    4851                                                        isHandlingData = false;
    4952                                                }
    5053
    For licensing, see LICENSE.html or http://ckeditor.com/license 
    6972                                        if ( !isHandlingData && editor.mode )
    7073                                        {
    7174                                                isHandlingData = true;
     75                                                try{
    7276                                                editor.setData( editor.getMode().getData(), null, 1 );
     77                                                }catch(e){}
    7378                                                isHandlingData = false;
    7479                                        }
    7580                                });
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy