angular-kindeditor icon indicating copy to clipboard operation
angular-kindeditor copied to clipboard

ng-model数据绑定问题

Open newhzh opened this issue 8 years ago • 5 comments

html:

controller: $scope.info={content:'kkk'};

问题是,在controller中能够通过$scope.info.content获取到输入的内容,但是在controller中赋值到$scope.info.content时却无法在编辑框中显示。请问是哪里出问题了?

谢谢

newhzh avatar Apr 28 '16 10:04 newhzh

确实有BUG,我已经修改了,请更新

zedwang avatar Apr 29 '16 09:04 zedwang

感谢回复并修改,但是我更新了之后,整个编辑器无法构建了,我是用在ionic项目里面,使用chrome做测试。 html代码:

<div keditor ng-model="info.content" data-config="config"></div>

controller代码:

$scope.info={ content:'hello world' };

$scope.config={ id : "content01", width : "100%", height : "300px", filterMode : false, resizeType : 0, items:[] };

newhzh avatar Apr 29 '16 10:04 newhzh

这个你可以看看有没报错?或者资源是否加载完毕?所有依赖的脚本是否都已经依赖?加油吧!

zedwang avatar Apr 29 '16 13:04 zedwang

项目中报了一个 GET http://localhost:8080/themes/default/default.css kindeditor-all-min.js:2的错误,只有textarea出来,同是最新版本

homx avatar Dec 21 '16 12:12 homx

你要确定是资源404还是脚本内部报错。资源404这个好说你检查下自己的引用路径,若果是脚本内部错误你可以进入到报错的位置,在开发的时候你可以引入没有被压缩的资源进行调试开发

zedwang avatar Dec 23 '16 03:12 zedwang