jHTMLArea 锁定在 jQuery Webform 向导内
我之前发布过这个问题 JWYSIWYG 或 jHtmlArea inside a Jquery Ui Tab 关于让 jHtmlArea 在 jQuery Ui 选项卡中工作。
我现在试图让这个相同的 html 编辑器在 jQuery formtowizard 插件。
我不确定这是否是完全相同的问题。没有抛出任何错误,并且编辑器似乎正确加载了所有按钮及其高度和宽度,但用户无法在文本区域中键入任何文本。
我正在生成这样的 jHtmlArea...
$(function(){
$(".text-detail").htmlarea({ css: "/css/jHtmlAreaCustom.css",});
});
然后
$(document).ready(function() {
$("#addFaci").formToWizard({ submitButton: 'AddFaciSubmit' });
}):
我是否需要从 formToWizard 脚本的回调中加载 jHTMLArea?我已经尝试了几个小时,确实需要一些指导。
感谢您的帮助。
蒂姆
I previously posted this question JWYSIWYG or jHtmlArea within a Jquery Ui Tab about getting jHtmlArea to work inside jQuery Ui tabs.
I am now trying to get this same html editor to work inside the jQuery formtowizard plugin.
I am not sure if this is exactly the same problem or not. No errors are being thrown and the editor appears to load all buttons and its height and width correctly but the user is unable to type any text in the textarea.
I am generating the jHtmlArea like this...
$(function(){
$(".text-detail").htmlarea({ css: "/css/jHtmlAreaCustom.css",});
});
and then
$(document).ready(function() {
$("#addFaci").formToWizard({ submitButton: 'AddFaciSubmit' });
}):
Do I need to load the jHTMLArea from within a callback from the formToWizard script? I've tried for several hours and definetely need some guidance.
Thanks for your help.
Tim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题原来是 jHtmlArea 需要在
formtoWizard
调用之后加载到$(document).ready(function() {
中。然后 jHtmlArea 会自行崩溃,因为它不能' t 在隐藏容器中动态设置它的高度和宽度属性,并使用 jQuery CSS 调用设置这些属性,
希望这对其他人有帮助。
The problem turned out to be jHtmlArea needed to be loaded in
$(document).ready(function() {
after theformtoWizard
call.Then jHtmlArea collapses onitself because it can't dynamically set it's height and width properties within a hidden container. Set these with jQuery CSS calls and your good to go!
Hope this helps someone else.