Setting the title of the editor lightbox
Setting the title of the editor lightbox
I have read the examples and looked through previous questions. It seems that to replace the title of the editor lightbox mod, this should work:
editor.on( 'initEdit', function ( e, json, data ) {
editor.field('id').disable();
editor.field('user_comment').disable();
editor.field('rbrslvd').disable(); editor.field('cbrslvd').disable();
editor.title('Issue ' +data.thisid);
}
It does not however, what am I missing? Thank you!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
Editor actually sets the title after the
initEdit
event is triggered, which is why your title appears to get overwritten (it is being!).Use
open
instead:Allan
This worked perfectly, thank you!
Hi @allan ,
Shouldn't the check be:
if ( action === 'edit' )
?Regards,
Harsha
Hi @hnhegde ,
Yep, slight typo on Allan's part. It should probably be a third option though
That'll capture the case if you're also inline or bubble editing,
Cheers,
Colin
Agreed. thanks!
Regards,
Harsha