简体   繁体   English

如何在自定义网站中添加CSS和HTML编辑器?

[英]How to add CSS and HTML editor in my custom website?

I have a website and already have the admin panel to post, add previlege, etc. And my website is not using any CMS. 我有一个网站,已经有管理面板发布,添加特权等。并且我的网站未使用任何CMS。

The problem is I want to edit my HTML and CSS (like wordpress do) directly from admin area. 问题是我想直接从管理区域编辑HTML和CSS(如wordpress做)。

Can Javascript / PHP do this? Javascript / PHP可以做到吗?

Please don't suggest another 3rd party to do this. 请不要建议其他第三方进行此操作。 Thank you very much. 非常感谢你。

That depends on how much customization you want.. If you want to just stylize your posts(typography) 这取决于您想要多少自定义。.如果您只是要样式化帖子(印刷术)

Visit the link mentioned below. 访问下面提到的链接。 https://ckeditor.com/ckeditor-5/ https://ckeditor.com/ckeditor-5/

Or if you want to change the whole HTML design layouts, then you'll have to store designs in db, raw html and your css should have styles for them as well. 或者,如果您想更改整个HTML设计布局,则必须将设计存储在db,原始html中,并且CSS也应该具有样式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM