如何防止< p>标签在Rails中用tinymce包装我的输入? [英] How to prevent the <p> tag from wrapping around my input with tinymce in Rails?

查看:42
本文介绍了如何防止< p>标签在Rails中用tinymce包装我的输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,tinymce输入将作为段落标签传递到DOM:

我想删除该元素包装,以便tinymce完全传递我在文本编辑器中输入的内容.我怎么做 ?请提供代码,也可以让我知道该代码在哪里添加的吗?问候!!!

By default, the tinymce input gets passed to the DOM as a paragraph tag:

I would like to remove that element wrapper so that tinymce passes exactly what I entered in the text editor. How do I do that ? Please if you provide a code, can you also let me know where that code gets added ? Regards !!!

推荐答案

实际上我已经解决了我的问题.我要做的就是更改段落标记的样式:

Actually I solved my problem. All I had to do was change the styling for paragraph tag :

p {margin: 0; padding: 0;}

这篇关于如何防止< p>标签在Rails中用tinymce包装我的输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆