Creating custom wysiwyg plugin


(Mhenley) #1

I would like to inquire if there are is any suggested procedures to adding custom plugins (therefore buttons) to the wysiwyg editor. I have made various modifications to the existing plugins with success… however would like to add my own instead of modifying the current plugins.


Looking at how the plugins are substantiated I see that both

[quote]core\assets\content_types\content_type_wysiwyg\content_type_wysiwyg_edit_fns.inc

core\attributes\wysiwyg\wysiwyg.inc[/quote]

may need to be edited… any advise before I start doing this in our dev environment?


(Greg Sherwood) #2

Just make sure your class names don't conflict with existing ones, and remember to select your plugins in the Global Prefs so that they are found in the array of active plugins.


(Mhenley) #3

[quote]Just make sure your class names don’t conflict with existing ones, and remember to select your plugins in the Global Prefs so that they are found in the array of active plugins.
[right][post=“15219”]<{POST_SNAPBACK}>[/post][/right][/quote]

Yes have done, works great. I’m now backing out all the changes I have made to the standard/matrix_ plugins and inserting griffith_ plugings for each change needed.


(Avi Miller) #4

Yeah, I quite like Mark's new Insert Image popup. :slight_smile: I've been drooling over Griffith's Simple Edit interface for the last two days.


(Nic Hubbard) #5

Can we see this too?

(Avi Miller) #6

[quote]Can we see this too?
[right][post=“15231”]<{POST_SNAPBACK}>[/post][/right][/quote]



That’s up to the guys at Griffith. :slight_smile:


(Adendle) #7

[quote]That’s up to the guys at Griffith. :slight_smile:
[right][post=“15233”]<{POST_SNAPBACK}>[/post][/right][/quote]



Mark,



Can you please take a couple of screen shots of some of the Simple Edit Interfaces and put them on Flicker and link to then from this forum thread please…



Thanks,

A


(Mhenley) #8

Hi,


I have put two screen shots on flickr:


  1. Simple edit interface
  2. Insert image popup



    Screenshots - simple edit - insert image



    We are planning to add custom icons for the wysiwyg editor… I will upload a new shot when implemented :slight_smile:

(Aleks Bochniak) #9

no-one steal it now :stuck_out_tongue:


(Mhenley) #10

Full size quick links:
Insert image

Insert image