By rockvilla


2019-02-11 08:13:13 8 Comments

When adding image into CKeditor using Entity Embed the source code looks like this,

<drupal-entity data-embed-button="media_browser" data-entity-embed-display="view_mode:media.embedded" data-entity-type="media" data-entity-uuid="2766d77e-6ada-45b2-8706-54e92bcf686d"></drupal-entity>

The html output in Json APi looks like this,

"body": "<drupal-entity data-embed-button=\"media_browser\" data-entity-embed-display=\"view_mode:media.embedded\" data-entity-type=\"media\" data-entity-uuid=\"2766d77e-6ada-45b2-8706-54e92bcf686d\"></drupal-entity>\r\n",

How to ensure the images would be shown in img tags in Json API so other systems like Angular or Mobile apps can readily use it.

0 comments

Related Questions

Sponsored Content

1 Answered Questions

REST GET ResourceResponse returns encoded json

  • 2018-08-03 15:34:28
  • Nick Dubois
  • 462 View
  • 1 Score
  • 1 Answer
  • Tags:   8 json

2 Answered Questions

Caption on CKEditor with Media embed only allows 128 characters

  • 2016-12-05 18:38:54
  • UnsettlingTrend
  • 320 View
  • 1 Score
  • 2 Answer
  • Tags:   8 images wysiwyg media

0 Answered Questions

Media & Media Entity Browser upload problems

  • 2019-03-09 13:29:40
  • ice70
  • 32 View
  • 0 Score
  • 0 Answer
  • Tags:   8 media

0 Answered Questions

How can I add classes to images added in CKEditor via Media?

  • 2018-09-04 17:01:16
  • Patrick Man
  • 393 View
  • 1 Score
  • 0 Answer
  • Tags:   8 wysiwyg media

0 Answered Questions

1 Answered Questions

[SOLVED] How to modify the image output for just one content type using Responsive Images?

  • 2017-12-12 05:59:51
  • usernameabc
  • 304 View
  • 1 Score
  • 1 Answer
  • Tags:   8 images theming

3 Answered Questions

[SOLVED] How to prevent CKEditor from removing content and tags written in source?

  • 2016-08-23 16:19:20
  • Matt
  • 1402 View
  • 2 Score
  • 3 Answer
  • Tags:   8 wysiwyg

0 Answered Questions

Edit with Full HTML on block changes closing div bracket to its character entity references

  • 2017-04-06 14:18:50
  • Lalas Muathasim
  • 43 View
  • 2 Score
  • 0 Answer
  • Tags:   8 wysiwyg

1 Answered Questions

[SOLVED] Get an image field of a specific size in REST API

  • 2016-12-24 00:14:37
  • Lenin Meza
  • 670 View
  • -1 Score
  • 1 Answer
  • Tags:   images 8

0 Answered Questions

Missing video formatter for embedding media into ckeditor

  • 2016-09-28 20:44:06
  • TiMESPLiNTER
  • 132 View
  • 1 Score
  • 0 Answer
  • Tags:   8 media

Sponsored Content