2013年4月9日 星期二

CLEditor的Paste as text 在IE無法執行問題

在Google 網上論壇查到一個解法∼
https://groups.google.com/forum/?fromgroups=#!topic/cleditor/mTLtCq-KEes

In version 1.3.0, unminified, change lines 714 - 715 from:

    if (ie && command.toLowerCase() == "inserthtml")
      getRange(editor).pasteHTML(value);

to:

    if (ie && command.toLowerCase() == "inserthtml"){
      /*
      Despite having access to pasteHTML, IE8 will produce an 'unspecified error'
      if it is invoked. The only way to detect this bug is via try catch.
      */
      try{
        getRange(editor).pasteHTML(value);
      }
      catch(e){
        // An empty document needs selection beforehand
        if(/^\s*$/.test(editor.doc.body.innerText)){
          editor.doc.execCommand('selectAll',false, null);
        }

        // execCommand is the standard method for contentEditable elements
        editor.doc.execCommand("Paste", 0, value || null);
      }
    }


將修改後的Script備份如.附件

--
待事以直 是謂君子

2013年3月16日 星期六

水晶報表-VS2010開發注意事項

、CrystalReport跟URL Routing會有衝突!?

若Site有使用URL Routing的架構,記得設定讓axd 檔不受路由約束。AND 這一段code要寫在Routes.Add 之前!
RouteTable.Routes.Ignore("{resource}.axd/{*pathInfo}");

水晶報表~佈署注意事項

經歷了前兩篇的風風雨雨之後~以為萬事大吉的我終究還是太天真了!
ASP.Net哪有可能這麼聽話。
好不容易將本機開發環境、IIS都整理的服服貼貼了,結果deploy上到Test server卻給我跑出
無法載入組件


水晶報表(CrystalReport)安裝注意事項


crystal report 若重灌或新安裝環境就要重設一次
但有些小細節常忘記,所以在此Memo一下∼

2013年3月11日 星期一

無風帶3

人過而立之年~人也越發穩重了起來
從前那堪比高級散熱片的身材已經沒辦法達到年輕時的功率了
為了炎炎夏日準備,改良房間的熱對流 實是當務之急