tzyganu / UMC1.9

New Ultimate Module Creator for Magento 1.7 +
MIT License
242 stars 88 forks source link

How can i use insert widget function on wysiwyg mode of a textarea? #112

Open pboethig opened 8 years ago

pboethig commented 8 years ago

Hi,

If enable wysiwyg i cant insert a widget. How can I enable that?

Kind regards

peter

dfelton commented 8 years ago

Peter,

It should work just as any other WYSIWYG. Are you having trouble utilizing Magento's editor to insert a widget's code into the contents of the entity's attribute, or is the trouble with rendering the widget on output to screen?

Sent from my Sprint Samsung Galaxy S® 6.

-------- Original message -------- From: pboethig notifications@github.com Date: 12/30/2015 6:26 AM (GMT-06:00) To: "tzyganu/UMC1.9" UMC1.9@noreply.github.com Subject: [UMC1.9] How can i use insert widget function on wysiwyg mode of a textarea? (#112)

Hi,

If enable wysiwyg i cant insert a widget How can I enable that?

Kind regards

peter

Reply to this email directly or view it on GitHubhttps://github.com/tzyganu/UMC1.9/issues/112.

pboethig commented 8 years ago

Hi Daran,

Thank you for the feedback.

My problem was , i have created an entity wtth a field "htmlcontent" as teatarea with wysiwsy option. The adminhtmlview was generated successfuly. but not "the magento way". So only a button "wysiwyg" was generated to open up a dialog to edit the content. Instead of editing the fiwld directly, wich causes Problems in Dialoghandling ob widgetcontent when inserting a widget. On the dialog the original buttons "insert variable" and "insert" ere missing. WYSIWYG makes no sense if you want to use variables or widgets in it.

Attached you find a Tab wich includes the editor the good old magento way. This renders the tetarea with all additional functions. Like Inserting widgets and variables.

With Variables and Widgetbuttons

At first i Implement the Widget_Tab_Interface and add all missing methods Then i have added the Wysiwyg Config After that I set the correct core renderer on the contentfield

That Worked, So now the inserb button will be displayd

<?php /**

original implementation from UMC

<?php /**

2015-12-30 17:46 GMT+01:00 Darren Felton notifications@github.com:

Peter,

It should work just as any other WYSIWYG. Are you having trouble utilizing Magento's editor to insert a widget's code into the contents of the entity's attribute, or is the trouble with rendering the widget on output to screen?

Sent from my Sprint Samsung Galaxy S® 6.

-------- Original message -------- From: pboethig notifications@github.com Date: 12/30/2015 6:26 AM (GMT-06:00) To: "tzyganu/UMC1.9" UMC1.9@noreply.github.com Subject: [UMC1.9] How can i use insert widget function on wysiwyg mode of a textarea? (#112)

Hi,

If enable wysiwyg i cant insert a widget How can I enable that?

Kind regards

peter

Reply to this email directly or view it on GitHub< https://github.com/tzyganu/UMC1.9/issues/112>.

— Reply to this email directly or view it on GitHub https://github.com/tzyganu/UMC1.9/issues/112#issuecomment-168032221.

dfelton commented 8 years ago

@pboethig Could you please try again to include your attachement(s)? They did not get added into the thread here on GitHub. I'd suggest navigating to this issue directly and posting your reply here.

So am I correct in understanding, that these buttons are missing for you? pic

pboethig commented 8 years ago

yes correct.

I helped me out with using the core methods instead of generated blocks. teher some small differences.

2016-01-06 15:19 GMT+01:00 Darren Felton notifications@github.com:

@pboethig https://github.com/pboethig Could you please try again to include your attachement(s)? They did not get added into the thread here on GitHub. I'd suggest navigating to this issue directly and posting your reply here.

So am I correct in understanding, that these buttons are missing for you? [image: pic] https://cloud.githubusercontent.com/assets/2659558/12144566/37c694ba-b44e-11e5-9c5f-7b72fddba1b8.png

— Reply to this email directly or view it on GitHub https://github.com/tzyganu/UMC1.9/issues/112#issuecomment-169333803.

dfelton commented 8 years ago

@pboethig This should be working out of the box. Do you mind attaching this file so I can check out the extension's configuration?

var/modulecreator/package/[Namespace]_[Module].xml.

dfelton commented 8 years ago

@tzyganu do you mind closing this due to inactivity please?

pboethig commented 8 years ago

Hi Darran,

This is my usecase. I have genereated an entity with some fields. Some of them are from the type "textarea" and I have chosen the option "WYSIWYG" Editor during configuration of the new module in UMC Modul Creator.

This worked like a charm and was very handy and easy. It generates an editform with all the fields. Even the WYSIWYG Editor appears and is functional. Only the small icon to insert a widget is missing.

I have compared the generated code with the corecodes and found out, that UMC generates the WYSIWYG Editor in another way than Mage Core does.

Kind Regards

Peter

2016-02-03 17:14 GMT+01:00 Darren Felton notifications@github.com:

@tzyganu https://github.com/tzyganu do you mind closing this due to inactivity please?

— Reply to this email directly or view it on GitHub https://github.com/tzyganu/UMC1.9/issues/112#issuecomment-179318544.