I have an textarea with tinyMCE included in the JQuery dialog.
Here is how I created this:
tinyMCE.init({ mode: 'none', });
var paragraphDialog = $('#paragraph_dialog');
$('<textarea/>').attr('id', 'txt_paragraph');
txtAreaParagraph = $('<textarea/>');
paragraphDialog = $('<div/>').attr('id', 'paragraph_dialog');
txtAreaParagraph.appendTo(paragraphDialog);
paragraphDialog.dialog({
height: 300,
width: 800,
modal: true,
open: function ()
{
if ($('#txt_paragraph_parent', $(this)).length == 0)
{
var ddd = {mode:'none'};
txtAreaParagraph.tinymce(ddd);
}
};
Now, I would like to set the width attribute of the textarea.
I have tried
$('<textarea/>').css('width', '700px');
and
$('<textarea/>').css('width', '700');
But none of them works.
Thank you very much for your help regarding my problem.