drlndkhib08556095 2014-07-27 11:17
浏览 24

将WYSIWYG添加到现有的textareas而不会丢失PHP功能

I have some existing forms with text areas made for editing. They first retrieve information from the database, the user can edit them and then update them in the database.

The problem is that in the database I have some text from MS Word and in the textareas I see Word formatting. I tried using TinyMCE Editor, but it replaces the existing textareas with custom code - losing classnames and other things that I refer to in my code and nothing works anymore.

Is there any minimal WYSIWYG editor that I could implement into my website without losing the already existing functionality?

Or are there any ways to change the Word formatting without using a plugin?

This is my example form:

<form id="myForm7" action="api/userInfo_1.php" method="post"> 
    Name: <textarea id="nazwa-artysty" type="textarea" name="Nazwa" class="nazwa"></textarea>

    Songs: <textarea type="text" name="Piosenki" class="piosenki"></textarea>

    <textarea type="input" id="" name="Id7" class="hidden-pic"  ></textarea>
    <button type="submit" class="cms-button">Save</button> 
 </form>

The text to be edited is inserted into the textareas via PHP using the name of the textarea in $.POST. When using TinyMCE, the textarea doesn't exist anymore and therefore there's no text inserted into it.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 基于卷积神经网络的声纹识别
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 stm32开发clion时遇到的编译问题