Magento 2, new widget with image chooser parameter, does not save picture - magento2

I am new on magento2.
I create a new widget and one of the parameters is a picture chooser, I just use this https://gist.github.com/cedricblondeau/6174911fb4bba6cb4943 code. Everthing looks well. I can open media folder and choose the picture I want to use.
When I choose the picture, the picture field on the form, is filled with this value: http://local.magento.com/admin/cms/wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ind5c2l3eWcvcHVycGxlLmpwZyJ9fQ,,/key/4c150d984998702b74709bb8f05820aff2f85a968d47e50f9638b7d2a7b1ced3/
But when I save the form widget data, the picture fied has this value:
{{media url=
nothing more. How can I solve this?
Thank you

Related

Why doesnt my listview builder show any items

I made data models from JSON and created class spaces to provide the data on the spaces. I have tried to implement future builder and then access the data using snapshot, that works but why doesnt this work. The loading spinner works. print statement inside if statement for listview also works. just no items. enter image description here
enter image description here
enter image description here

Pdf Navigation from Table of contents

I am working on a flutter app which generates PDF files in flutter using pdf library.I need to create a pdf file which has a table of contents. They should be linked with the actual content and should navigate to their respective pages when clicked on it. I couldn't find any documentation online for doing this using the pdf library. The PDF is going to be written to a file so PDF Viewers in flutter are not useful for me either. Can someone please help me out
can we use html code with dart like <a tag or something for internal navigation in PDF?
You can use Anchor and Link widgets from pdf/widgets.dart for internal navigation inside the generated PDF.
Just create an Anchor on the page to which you want to navigate to. You need to provide a name parameter for it and it should be unique.
Anchor(name:'my_anchor', child: any_child_widget);
You can now refer to that anchor from another page using Link widget.
Link(destination:'my_anchor',child: any_child_widget);
You can enclose any child within the Anchor and Link widget.

Create a shareable Image/ certificate in Flutter

In my Flutter app, I want to be able to create some kind of certificate of completion. The layout will be always the same, but picture and text in it should change. This certificate should be created in a jpg format, so I can share it with other apps.
Does anyone have an idea how this could be accomplished?
The only way I can imagine is that I create a Screen template where I put in text and picture, then let the phone take a screenshot and save that screenshot automatically. But this might lead to unwanted content in the picture and different image sizes. I have searched for Widgets/ ways to create an image in Flutter but could not find anything.
You will need to create a widget with constructors (Image and text).
Then use a flutter package called screenshot to capture the parent widget as image and save it to the users phone.
plugin link: https://pub.dev/packages/screenshot

I want to know the exact file/location of this text that shows on add/edit product from Admin.?

Here is image attatch and text is visible that i want to know from where comes.
From this file
vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/CustomOptions.php

Fill form by clicking anchors with javascript or jquery

What I need is a script to fill form inputs by clicking on links on the same site with the link text. Yesterday I found a solution to do this, but It's only the half way to my exceptation. The script must fill the first empty input field. I've illustrated it on the image:
In the same time the clicked link must disappear. In this case the result would be:
I've no idea how to do it in javascript weather in jquery. Please help!