zedwang / angular-kindeditor Goto Github PK
View Code? Open in Web Editor NEW:smile:Angular port for kindeditor.Note:Only supports versions below 1.6
:smile:Angular port for kindeditor.Note:Only supports versions below 1.6
在ie浏览器下不显示,在chrome浏览器下跨域
html:
controller:
$scope.info={content:'kkk'};
问题是,在controller中能够通过$scope.info.content获取到输入的内容,但是在controller中赋值到$scope.info.content时却无法在编辑框中显示。请问是哪里出问题了?
谢谢
觉得还不错,希望你能维护下去。
你好,
经过测试。如果controller中初始不赋值,通过angular的http(),在success()里面给model赋值的话,编辑器无内容。
如果初始给model赋值,则http请求后的success里面给model赋值的话,对应的编辑器内容不会改变。
虽然修复了model不显示的问题,可是这次整个kindeditor的界面都不显示出来了,就只有一个简单的input框?
<div class="keditor" ng-model="content"></div>
应该换成
<textarea keditor ng-model="content" data-config="config" cols="30" rows="10" required></textarea>
或者
<div keditor ng-model="content" data-config="config"></div>
希望能更正文档,东西不错,谢谢了,加油!
首先我没有用KindEditor,在看源码的时候,发现src里面的js,有KindEditor.Ready()方法。通过查资料发现,KindEditor好像并没有这个方法。去掉这个方法,同事去掉isReady的判断之后,数据就可以绑定了。
但是我并不太确定这个方法是否合理。大家可以参考下,或者找到正确的解决办法。也看了别人commit的代码,通过$watch来实现,但是不知道为什么没有合并到作者的分支上。
你好,现在项目中使用了你的kindeditor,但是在配置正确的情况下无法显示kindeditor的界面并抛出了两个错误。
希望提示。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.