Can the wysiwyg editor be removed when editing in-line?

QuestionsCan the wysiwyg editor be removed when editing in-line?
Rankaj asked 10 years ago

Can the wysiwyg editor be removed when editing in-line (main grid > inline edit)

Description: On the main grid when editing in-line too much vertical space is used when by the wysiwyg editor. Can the wysiwyg features be removed specifically on the main grid?

Note: wysiwyg editor should remained on add/edit popup

7 Answers
Abu Ghufran answered 10 years ago

You can either make column as hidden in list, and let it editable in add/edit form.

$col["hidden"] = true;
$col["editrules"] = array("edithidden"=>true);

Rankaj answered 10 years ago

On the main grid when editing in-line too much vertical space is used when by the wysiwyg editor. Can the wysiwyg features be removed specifically on the main grid?

Abu Ghufran answered 10 years ago

If you want to hide that columns, refer above solution.

Please explain what are you expecting in place of wysiwyg editor? inputbox / textarea ?

Rankaj answered 10 years ago

I want textarea at main grid for that column but wysiwyg editor in add/edit pop up form. Is it feasible?

Abu Ghufran answered 10 years ago

Edit jqgrid_dist.php and update link_editor function.

http://hastebin.com/juxizeyigu.js

I just added following 2 lines just after function.

if (jQuery(el).closest('.jqgrow').length)
return;

Massimo Gagliardi answered 8 years ago

The solution doesn't display the wysiwyg texts.
I would prefer change the phpgrid_dist.php from:
– CKEDITOR.replace
to:
– CKEDITOR.inline
that maintains the correct visibility and calls the editor only when the text gets the focus.
Massimo Gagliardi

Abu Ghufran answered 8 years ago

Thanks for sharing.

Your Answer

2 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?