? ? ? Failure

User tests: Successful: Unsuccessful:

avatar alimpam
alimpam
28 Aug 2016

Pull Request for Issue # .

Summary of Changes

  • Make TinyMCE-Plugins (Buttons) configurable (enable / disable, accessrights etc..)
  • Makes easier to extend TinyMCE
  • easier to maintenance
    vorhernachherdragdrop

Testing Instructions

Before:
You cant enable / disable / install / uninstall TinyMCE-Buttons with Joomla
After:
I created an example for TinyMCE-Smileys-Plugin

  1. Download https://github.com/alimpam/tinymce-smileys-plugin and install it
  2. In the Plugin-Manager you will see a new Plugin Smileys-Plugin for TinyMCE (belongs to editors_buttons category) which can be enabled / disabled
  3. You can edit an article and checkout if it works. So if it is enabled you can insert smileys ;-)

Documentation Changes Required

This PR makes it easier to expand the functionality of TinyMCE and
allows to install/uninstall (as Joomla-Plugins) or enable/disable
Buttons. For that there is a new plugin category "editors_buttons" which
must be used. Also jdragdrop is fitted for this changes. (based on #11157)

avatar alimpam alimpam - open - 28 Aug 2016
avatar alimpam alimpam - change - 28 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2016
Category SQL Administration Components Postgresql MS SQL Language & Strings Installation Layout JavaScript External Library Plugins Front End
avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2016
Labels Added: ? ?
avatar alimpam alimpam - change - 28 Aug 2016
The description was changed
avatar RonakParmar
RonakParmar - comment - 29 Aug 2016

Can you please provide steps to test this PR?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11829.

avatar schnuti
schnuti - comment - 29 Aug 2016

Beside the test instructions. Please explain what kind of functionality it adds that you can't do as is.
Did you base your code on #11157? I think a lot of code is already in that PR.

Personally I like any functionality/usability added to the editor. ?

avatar brianteeman
brianteeman - comment - 29 Aug 2016

Now that you have created a real plugin for jdragdrop wouldn't it be better if the associated javascript was moved with it

avatar dgt41
dgt41 - comment - 29 Aug 2016

@brianteeman but it is:

    <media folder="jdragdrop" destination="editors/tinymce/plugins/jdragdrop">
         <file>plugin.js</file>
         <file>plugin.min.js</file>
     </media>
avatar brianteeman
brianteeman - comment - 29 Aug 2016

I meant outside of tinymce own root. It will make maintenance of tinymce
much easier. But maybe that's just me?

On 29 Aug 2016 9:04 p.m., "Dimitri Grammatikogianni" <
notifications@github.com> wrote:

@brianteeman https://github.com/brianteeman but it is:

<media folder="jdragdrop" destination="editors/tinymce/plugins/jdragdrop">
     <file>plugin.js</file>
     <file>plugin.min.js</file>
 </media>


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#11829 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8fNZXtu5AMCprD4sYcHtdqXP19yYks5qkzsigaJpZM4JvA91
.

avatar alimpam
alimpam - comment - 29 Aug 2016

@schnuti @RonakParmar - now there are testing instructions

avatar dgt41
dgt41 - comment - 29 Aug 2016

@brianteeman there was a decision that tinymce plugins will be stored in the location editors/tinymce/plugins as it makes the integration way to easier to implement. The maintenance is a chapter which needs to be rewritten in j4 with npm/gulp (or similar tools)

avatar alimpam alimpam - change - 29 Aug 2016
The description was changed
avatar brianteeman
brianteeman - comment - 29 Aug 2016

Just seems wrong to me.

avatar schnuti
schnuti - comment - 30 Aug 2016

I agree with @brianteeman
1. Why not use the in TinyMCE built in functionality to load scripts from "external sources"? I tested it as in #11157. 'path/to/plugin.js' can point to e.g.
JUri::root().'media/cms/js/tinymce/cmsbutton.min.js'
or
JUri::root().'media/com_mycomp/js/tinymce/mybutton.min.js'
or
real external path like a CDN.
You could define rules to allow overrides.
2. How to activate other (new) standard TinyMCE plugins and buttons without coding?

avatar schnuti
schnuti - comment - 30 Aug 2016

Another thing is the buttons. Wouldn't it be better to merge all (6) cms buttons into one plugin.js?
This only means that the buttons have to be defined in another way then by loaded xtd-plugin. "button-Article" instead of "buttonX-Article". May not be possible in 3.x?

Edit: The js code would then not be loaded into the HTML-header.

avatar schnuti
schnuti - comment - 30 Aug 2016

Sorry for not keeping this in one post.

The new plugin type should return a second parameter with the button(s). In that way one plugin can define more than one button or no buttons at all. Plugin code is not necessary = one button.
If you need more dynamic buttons the code has to be splitted.
Why not also allow to return also without plugin but only buttons or more then one plugin?

array(array('the plugins'), array('the buttons')

avatar wilsonge wilsonge - change - 3 Sep 2016
Labels Added: ?
avatar mbabker
mbabker - comment - 21 May 2017

Is this still being worked on?

avatar joomla-cms-bot joomla-cms-bot - change - 21 May 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 21 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 22 May 2017
Status Pending Information Required
avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2017
Category SQL Administration Components Postgresql MS SQL Language & Strings Installation Layout JavaScript External Library Plugins Front End SQL Administration com_admin Postgresql MS SQL Language & Strings Installation Layout JavaScript External Library Front End Plugins Components
avatar schnuti
schnuti - comment - 22 May 2017

I hope not. The tinyMCE "workflow" has changed a lot since aug. 2016. Any proposal would do better in a new issue.

avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2017
The description was changed
Status Information Required Closed
Closed_Date 2017-05-22 08:34:21 2017-05-22 08:34:22
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 22 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 22 May 2017
The description was changed
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-05-22 08:34:21
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2017
Status Closed Information Required
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 May 2017
avatar joomla-cms-bot joomla-cms-bot - edited - 22 May 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 May 2017

closed as comments above. Feel free to reopen if needed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/11829.

avatar dgt41
dgt41 - comment - 19 Aug 2017

@franz-wohlkoenig can you please reopen this one?

avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2017
The description was changed
Status Discussion New
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - reopen - 19 Aug 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2017
Status Closed Discussion
Closed_Date 2017-05-22 08:34:22
Closed_By joomla-cms-bot
avatar joomla-cms-bot
joomla-cms-bot - comment - 19 Aug 2017
avatar joomla-cms-bot joomla-cms-bot - edited - 19 Aug 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Aug 2017

done

avatar brianteeman
brianteeman - comment - 21 Jul 2018

@dgrammatiko one year ago you asked for this abandoned pr to be re-opened as there has been no further activity I am closing it again as abandoned. If you wanted it to be kept open as a todo-list reminder for you then I guess it didn't work - and this isnt the place

avatar brianteeman brianteeman - change - 21 Jul 2018
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-07-21 21:58:48
Closed_By brianteeman
avatar brianteeman brianteeman - close - 21 Jul 2018

Add a Comment

Login with GitHub to post a comment