CKEditor 4 call a plugin from a custom plugin - ckeditor4.x

Is it possible to call the colorbutton plugin from a custom plugin i am wanting to create
I want to create a Row Properties where i can use the colors from the colorbutton to set the row background color.
Any help much appreciated.

Related

What is the best way to update default CKEditor plugin code to add custom features?

I need to add custom functionality to default CKEditor features, for example:
Add a new option in "Link Type" picklist in Link overlay in addition to existing "URL" and "E-mail" options. This new option will be used to generate links specific to an organization using an ID.
How can I achieve above goal while keeping the CKEditor code maintainable? i.e I should be able to upgrade CKEditor to newer versions without having to reapply all custom code changes again.
I am using CKEditor version 4.5.10 (dev)

CKEditor: Customizing the Table Dialog Window

I am using the CKEditor module for Drupal7.
I want to customize the Table dialog window.
I saw this thread, But I am not clear where to add the code that #oleq added.
Here is the URL: Set default table properties for CKEditor?
In what file should I add the code?
Thanks.
If you're using the regular ckeditor module (ie not through wysiwyg module), then you can just add it to the bottom of:
sites/all/modules/contrib/ckeditor/ckeditor.config.js
If you're using wysiwyg module and ckeditor library, then it's more complicated, and I'll post it as a separate question since a few people have asked this.

how to display color palette in ckeditor

Pardon if this is very basic thing but since I am new to it and could not find any thing about it, so I am asking.
I have integrated ckeditor in my textarea but ckeditor is not showing palette to change font color. How can I display it in ckeditor options?
Thanks!
Did you download a full build of CKEditor?
What you're looking for is the colorbutton plugin. Basic/standard builds of CKE don't have this plugin.

How to enable table resizer in CKEditor 4?

On their demo page they show how you can click and drag table borders to resize columns. How do I enable this feature?
I can't find it in the docs, can't find a plugin for it, can't find any references to "resize" in the source code, and the source code for the configuration isn't shown on the demo page itself (View source is mostly unreadable).
Table Resize plugin isn't available by default in any of three available presets (basic, std, full).
You have to add Table Resize plugin to your own build of CKEditor. It will be enabled by default, so you don't have to use extraPlugins config setting.
You can find more information here: Plugins - CKEditor 4 documentation.

CKEditor PlugIn, Simple PlugIn Ability

I'm interested in creating a plugin that does this simple task:
Steps
1. User selects some text by highlighting
2. user clicks the plug-in
3. CKEDITOR, wraps the selected text with a tag with some class and/or ID.
Can anyone help with this? I've been playing with CKEDITOR.htmlWriter but haven't even been able to get that started: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.htmlWriter.html#constructor
Thanks!
Look at the basicstyles plugin, you just need to define a button that applies a "style", and you define what's the element, attributes and styles that this "style" means.

Resources