CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • 5.0 Saloon »
  • Jeditable replacement search
Pages: [1]

Author Topic: Jeditable replacement search  (Read 1073 times)

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Jeditable replacement search
April 27, 2015, 07:45:19 am
Back and forward linking http://wiki.civicrm.org/confluence/display/CRMDOC/In-Place+Field+Editing

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Re: Jeditable replacement search
April 27, 2015, 07:49:33 am
Ter info: Drupal 8 uses CKEditor as included wysiwyg, and also uses that for the in place editing in Drupal.
If i'm not mistaking this uses the content-editable attribute (http://docs.ckeditor.com/#!/guide/dev_inline)
Perhaps this is an option? (And in the meantime fully replace the wysiwyg editor in civicrm *wishfull*)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Jeditable replacement search
April 27, 2015, 07:57:31 am
Just to be clear, Civi uses CKEditor for rich text area editing.
jEditable is a bit different use-case as it is used for editing individual fields when viewing an entity.
Try asking your question on the new CiviCRM help site.

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Re: Jeditable replacement search
April 27, 2015, 11:17:59 am
Now i see, i think we should be able to replace jeditable by the contentEditable attribute. http://caniuse.com/#feat=contenteditable?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Jeditable replacement search
April 27, 2015, 11:23:06 am
That might work for text fields (might need to use js to add the save/cancel buttons). It doesn't look like contenteditable supports select lists.
Try asking your question on the new CiviCRM help site.

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Re: Jeditable replacement search
April 27, 2015, 11:21:06 pm
I've looked briefly in to the quickedit module for D8 http://cgit.drupalcode.org/drupal/tree/core/modules/quickedit
If i see it correctly, the're using contenteditable for text-fields. (And optionally add the CKEditor to those textfields) which could be used for civiCRM for textfields.
When 'inline' editing another field, there is some backbone magic to retreive the form. (No jeditbale, but a 'specific / custom' backbone implementation).
AFAICT the drupal approach has the same requiremenst as CiviCRM (field based inline editing). I'll give it a try to work out a POC top see if we can use a similar approach. Off course we should still search for other options.

mallezie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal
  • PHP version: 5.4
Re: Jeditable replacement search
April 27, 2015, 11:24:50 pm
Perhaps an other suggestion comes to mind. Drupal did some research in the D8 development cycle to use http://viejs.org/ and https://facebook.github.io/react/. I am not sure how these could fit in the story, but just dropping the names here for now.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • 5.0 Saloon »
  • Jeditable replacement search

This forum was archived on 2017-11-26.