Commit c5d61fcb authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1568659: Allow the tinymce to not record height



And not record the constraint also

behatnotneeded - existing tests will do

Change-Id: Ia0ec5c9d6c99d2560bb5186b905e98ec47f04407
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 67b6de02
......@@ -116,7 +116,6 @@ tinymce.PluginManager.add('imagebrowser', function(editor) {
addImageBrowser(ibdata);
// fill url field and the selected image's title in the heading of the 'Image' expander
jQuery(formname + '_width').val(data.width);
jQuery(formname + '_height').val(data.height);
jQuery(formname + '_url').val(data.src);
jQuery(formname + '_style').val(data.style);
jQuery(formname + '_align').val(data.align);
......@@ -335,7 +334,6 @@ tinymce.PluginManager.add('imagebrowser', function(editor) {
src: jQuery(formname + '_url').val(),
alt: jQuery(formname + '_alt').val(),
width: jQuery(formname + '_width').val(),
height: jQuery(formname + '_height').val(),
style: jQuery(formname + '_style').val(),
hspace: jQuery(formname + '_hspace').val(),
vspace: jQuery(formname + '_vspace').val(),
......
......@@ -153,19 +153,6 @@ class ImageBrowser {
'maxlength' => 4
)
),
'height' => array(
'type' => 'text',
'title' => get_string ( 'height' ),
'size' => 3,
'rules' => array (
'maxlength' => 4
)
),
'constrain' => array (
'type' => 'switchbox',
'title' => get_string ( 'constrain' ),
'defaultvalue' => true
),
'vspace' => array (
'type' => 'text',
'title' => get_string ( 'vspace' ),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment