Comments (12)
遍历所有子View,取出数据
from animricheditor.
如果转为html文本了 ,我保存草稿,下次再编辑怎么解
from animricheditor.
不建议转为Html。数据与UI分离,一份数据,既可以在IOS用,又可以在安卓用,也能在PC用。怎么方便怎么来,你需要跟后端沟通好。
如果非要存储HTML,则HTML的解析工作,需要根据你生成的规则反向进行,往往会更麻烦。
from animricheditor.
如果不转,怎样来保存草稿和编辑草稿,再编辑的时候需要将保存的数据解析出来并在页面上呈现出原来的样子,这个不好解决吧
from animricheditor.
我更推荐其它的方式。
HTML往往是标签太多,不便于操作。你可以考虑xml的形式,java里面也有专门的parser类可以用。存储的时候,并没有太大限制,性能、效率、可读性也都比html强一些。-仅供参考
from animricheditor.
你写的这个编辑器能解析富文本数据吗
from animricheditor.
@liulinsen 用json吧,json通用性比较好
from animricheditor.
数据格式都没定,怎么解析富文本。现在不支持的,要依赖于数据格式,是json还是xml,还是html
from animricheditor.
如果你定好了格式,这个会很简单的。代码本身就那几行,初入行三五个月的都能看懂的
from animricheditor.
我研究一下吧,非常感谢
from animricheditor.
我刚好用这个做过一次,草稿什么的也都做了,但是并未用到html,当时是将表单数据存储到java bean,然后转为json,以字符串形式保存到sd卡上的文件中。
from animricheditor.
@liulinsen 我们现在有个需求和知乎差不多 但现在不实现编辑 只实现发布 所以也要将内容转换成html后以post形式发给服务器 目前是选择一张图就上传一次到服务器然后获取对应的imageName 你那有好的解决方案吗 我指的是转换html标签
from animricheditor.
Related Issues (14)
- 怎么生成可提交的字符啊 HOT 1
- android 6.0 点击拍照按钮闪退 HOT 2
- Open Image after inserting it HOT 1
- 大神,必须最低版本安卓5.0 么 HOT 1
- How to upload data to server? HOT 1
- Can't import
- Publish the demo APK on Google Play HOT 2
- Licence is missing HOT 1
- OutOfMemoryError HOT 5
- 怎么样把服务器拿下来的数据显示到editor里面? HOT 2
- add video? HOT 2
- 请问保存后怎么编辑呢? HOT 2
- how to export html HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animricheditor.