开发者

CKEDITOR Define Editable Area

开发者 https://www.devze.com 2023-01-03 19:14 出处:网络
I\'m using CKEDITOR to update the body content of various pages on a website.While I have applied the existing stylesheets via config.contentsCss, I need to wrap the editable area in some HTML like:

I'm using CKEDITOR to update the body content of various pages on a website. While I have applied the existing stylesheets via config.contentsCss, I need to wrap the editable area in some HTML like:

<div id="contentWrapper">
   <div id="content">
     [EDITABLE CONTENT]
   </div>
</div>

Additionally开发者_高级运维, I need for only [EDITABLE CONTENT] to be written to the CKEDITOR <textarea> element and not the wrapper.

Anybody have any ideas?


I'd recommend putting your page data into a back-end database, then pulling that into your CKeditor instance and making the update to that rather than attempting to parse your page and pull the code in that manner. If you are worried about the back-end processing hit to pull from the db you can generate cached pages using the database code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号