Redactor WYSIWYG转换负载奇怪

时间:2012-07-27 01:10:46

标签: jquery wysiwyg

这是编辑器http://redactorjs.com/

我正在使用redactor for WYSIWYG,由于某种原因,它将默认文本转换为jQuery2。这太傻了。有什么想法吗?

我用于管理面板的模板需要jQuery而不是所有jQuery命令的$。这有什么关系吗?我必须在redactor.js文件中将所有$转换为jQuery ...

示例:

我默认放置一个html表,它只显示标签,其余部分已经消失了,当我点击源代码时它就是这样说的:

<h2 style=" text-align: left; ">What is Solavei?<br>
</h2>
<p>2</p>
<h2 style=" text-align: left; ">Why Partner with Us?<br>
</h2>
<p>2</p>
<h2 style=" text-align: left; ">Join Now!<br>
</h2>
<p>2</p>
<p>2</p>

这很奇怪,因为它首次加载时(不在源代码视图中)显示:

What is Solavei?

jQuery2

Why Partner with Us?

jQuery2

Join Now!

jQuery2

这是我通过php插入的表格(抱歉格式不佳,我不想花很多时间在它上面因为它对响应不是很重要...这不是唯一的代码它确实如此)

<tbody class="wsite-multicol-tbody">
<tr class="wsite-multicol-tr">
<td class="wsite-multicol-col" style="width:32.183908045977%;padding:0 20px">
<h2 style=" text-align: left; ">What is Solavei?<br></h2> 
<div class="paragraph editable-text" style=" text-align: left; display: block; ">
<ul><li>A relationship driven company that offers unlimited talk, text, and internet over a nationwide 4G network for $49 per month with no contracts.</li>
<li>Using the power of social media and networking to allow their customers and partners to build an unbelievable monthly income simply by sharing the opportunity with others.</li>  
<li>A revolution that is offering millions of Americans a chance a true financial independence!</li><li><a title="" href="/about-solavei.html">
<span style="text-decoration: underline;">More...</span></a><br></li></ul></div>
</td><td class="wsite-multicol-col" style="width:34.48275862069%;padding:0 20px"><h2 style=" text-align: left; ">Why Partner with Us?<br></h2> 
<div class="paragraph editable-text" style=" text-align: left; display: block; "><ul>
<li>We are one of Solavei's fastest growing networking organizations.</li>
<li>We offer our members 100% support and access to the experience of thousands of experienced Solavei professionals.</li>
<li><span style="font-weight: bold;">We will help you build your own Solavei Network. </span>
<span style="font-style: italic;">Our success is dependent upon the success of our individual members. After you sign your first three new members, we will sign up three more for you!</span></li><li><span style=" font-style: italic;">
<a href="/about-us.html"><span style="text-decoration: underline;">More...</span></a>
<br></span></li></ul></div>  </td>
<td class="wsite-multicol-col" style="width:33.333333333333%;padding:0 20px">
<h2 style=" text-align: left; ">Join Now!<br></h2> 
<div class="paragraph editable-text" style=" text-align: left; display: block; "><a href="/join-now.html" title="">
Click here to join the Solavei Success Network. We will respond with an invitation into our lane within 24 hours.</a><br></div>  
<div><div class="wsite-image wsite-image-border-thin " style="padding-top:10px;padding-bottom:10px;margin-left:0;margin-right:0;text-align:center"> 
<a> <img src="/uploads/2/9/1/0/2910969/5542182_orig.jpg" alt="Picture" style="width:100%;max-width:150px"> </a> 
<div style="display:block;font-size:90%"></div> </div></div>  
</td></tr></tbody>

1 个答案:

答案 0 :(得分:0)

jQuery没有冲突的原因是什么。不要将jQuery与redactor一起使用。使用$。将所有$转换为jQuery不起作用。