posts - 59, comments - 244, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          CKEDITOR編輯操作數據方法

          Posted on 2012-09-13 17:14 penngo 閱讀(2925) 評論(0)  編輯  收藏 所屬分類: javascript
          <textarea id="content" name="content" cols="" rows="10" style="height:700px;" ></textarea>

          初始化
          editor = $("#content").ckeditor();
          $("#oldcontent").ckeditor({height:300,toolbar:[]});

          操作方法
          CKEDITOR.instances.oldcontent.setReadOnly(false);
          CKEDITOR.instances.content.setData("Pacer");
          CKEDITOR.instances.content.insertHtml("<img src=''>");
          content為控件的id
          主站蜘蛛池模板: 阿城市| 从江县| 荣昌县| 昆明市| 马山县| 临沧市| 南充市| 临沂市| 新昌县| 永德县| 浪卡子县| 永泰县| 泽州县| 泰安市| 冕宁县| 年辖:市辖区| 新宁县| 景泰县| 东光县| 伽师县| 崇礼县| 泰宁县| 鄂温| 广德县| 定西市| 东莞市| 鹰潭市| 右玉县| 武汉市| 宿州市| 正镶白旗| 若羌县| 鹰潭市| 万州区| 沽源县| 淅川县| 昌都县| 克东县| 自治县| 剑河县| 称多县|