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
  • 706 View
  • 1 Score
  • 1 Answer
  • Tags:   8 json

2 Answered Questions

[SOLVED] Caption on CKEditor with Media embed only allows 128 characters

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

3 Answered Questions

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

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

Sponsored Content