开发者

tinymce: how to edit php pages without stripping php?

开发者 https://www.devze.com 2023-03-28 10:39 出处:网络
I need to give my client the ability to change his pages through tinyMCE. Trouble is these pages contain s开发者_开发百科ome php script and tineyMCE strips the php script : infact it adds some HTML co

I need to give my client the ability to change his pages through tinyMCE. Trouble is these pages contain s开发者_开发百科ome php script and tineyMCE strips the php script : infact it adds some HTML comment to disable it.

How can I pass through ?


TinyMCE is not a text editor: it is more akin to a word processor. You could (perhaps) technically use the "HTML source editor" (the button labeled HTML in this example) but I don't think that would be a pleasant experience and it might not even work at all.

If you're looking for a code editor, may I suggest Ace? It is a code editor and seems suited to what your needs are.

0

精彩评论

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