Issue #2290255 by Wim Leers, er.pushpinderrana, amitgoyal: Make developer info for CKEditor plugins more discoverable
parent
2458d9ec7a
commit
2d915cb46f
|
@ -12,6 +12,15 @@ use Drupal\Component\Annotation\Plugin;
|
||||||
/**
|
/**
|
||||||
* Defines a CKEditorPlugin annotation object.
|
* Defines a CKEditorPlugin annotation object.
|
||||||
*
|
*
|
||||||
|
* Plugin Namespace: Plugin\CKEditorPlugin
|
||||||
|
*
|
||||||
|
* For a working example, see \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalImage
|
||||||
|
*
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginBase
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginManager
|
||||||
|
* @see plugin_api
|
||||||
|
*
|
||||||
* @Annotation
|
* @Annotation
|
||||||
*/
|
*/
|
||||||
class CKEditorPlugin extends Plugin {
|
class CKEditorPlugin extends Plugin {
|
||||||
|
|
|
@ -25,10 +25,13 @@ use Drupal\editor\Entity\Editor;
|
||||||
*
|
*
|
||||||
* NOTE: the Drupal plugin ID should correspond to the CKEditor plugin name.
|
* NOTE: the Drupal plugin ID should correspond to the CKEditor plugin name.
|
||||||
*
|
*
|
||||||
* @see CKEditorPluginInterface
|
* @see \Drupal\ckeditor\CKEditorPluginInterface
|
||||||
* @see CKEditorPluginButtonsInterface
|
* @see \Drupal\ckeditor\CKEditorPluginButtonsInterface
|
||||||
* @see CKEditorPluginContextualInterface
|
* @see \Drupal\ckeditor\CKEditorPluginContextualInterface
|
||||||
* @see CKEditorPluginConfigurableInterface
|
* @see \Drupal\ckeditor\CKEditorPluginConfigurableInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginManager
|
||||||
|
* @see \Drupal\ckeditor\Annotation\CKEditorPlugin
|
||||||
|
* @see plugin_api
|
||||||
*/
|
*/
|
||||||
abstract class CKEditorPluginBase extends PluginBase implements CKEditorPluginInterface, CKEditorPluginButtonsInterface {
|
abstract class CKEditorPluginBase extends PluginBase implements CKEditorPluginInterface, CKEditorPluginButtonsInterface {
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,13 @@ namespace Drupal\ckeditor;
|
||||||
* added as well. The downside of conditionally adding buttons is that the user
|
* added as well. The downside of conditionally adding buttons is that the user
|
||||||
* cannot see these buttons in the toolbar builder UI.
|
* cannot see these buttons in the toolbar builder UI.
|
||||||
*
|
*
|
||||||
* @see CKEditorPluginContextualInterface
|
* @see \Drupal\ckeditor\CKEditorPluginInterface
|
||||||
* @see CKEditorPluginConfigurableInterface
|
* @see \Drupal\ckeditor\CKEditorPluginContextualInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginConfigurableInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginBase
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginManager
|
||||||
|
* @see \Drupal\ckeditor\Annotation\CKEditorPlugin
|
||||||
|
* @see plugin_api
|
||||||
*/
|
*/
|
||||||
interface CKEditorPluginButtonsInterface extends CKEditorPluginInterface {
|
interface CKEditorPluginButtonsInterface extends CKEditorPluginInterface {
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,13 @@ use Drupal\editor\Entity\Editor;
|
||||||
* then be automatically passed on to the corresponding CKEditor instance via
|
* then be automatically passed on to the corresponding CKEditor instance via
|
||||||
* CKEditorPluginInterface::getConfig().
|
* CKEditorPluginInterface::getConfig().
|
||||||
*
|
*
|
||||||
* @see CKEditorPluginInterface
|
* @see \Drupal\ckeditor\CKEditorPluginInterface
|
||||||
* @see CKEditorPluginButtonsInterface
|
* @see \Drupal\ckeditor\CKEditorPluginButtonsInterface
|
||||||
* @see CKEditorPluginContextualInterface
|
* @see \Drupal\ckeditor\CKEditorPluginContextualInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginBase
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginManager
|
||||||
|
* @see \Drupal\ckeditor\Annotation\CKEditorPlugin
|
||||||
|
* @see plugin_api
|
||||||
*/
|
*/
|
||||||
interface CKEditorPluginConfigurableInterface extends CKEditorPluginInterface {
|
interface CKEditorPluginConfigurableInterface extends CKEditorPluginInterface {
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,13 @@ use Drupal\editor\Entity\Editor;
|
||||||
* the case where it must be enabled based on an explicit setting), then one
|
* the case where it must be enabled based on an explicit setting), then one
|
||||||
* must also implement the CKEditorPluginConfigurableInterface interface.
|
* must also implement the CKEditorPluginConfigurableInterface interface.
|
||||||
*
|
*
|
||||||
* @see CKEditorPluginConfigurableInterface
|
* @see \Drupal\ckeditor\CKEditorPluginInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginButtonsInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginConfigurableInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginBase
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginManager
|
||||||
|
* @see \Drupal\ckeditor\Annotation\CKEditorPlugin
|
||||||
|
* @see plugin_api
|
||||||
*/
|
*/
|
||||||
interface CKEditorPluginContextualInterface extends CKEditorPluginInterface {
|
interface CKEditorPluginContextualInterface extends CKEditorPluginInterface {
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,13 @@ use Drupal\editor\Entity\Editor;
|
||||||
* Finally, if your plugin must be configurable, you can also implement the
|
* Finally, if your plugin must be configurable, you can also implement the
|
||||||
* CKEditorPluginConfigurableInterface interface.
|
* CKEditorPluginConfigurableInterface interface.
|
||||||
*
|
*
|
||||||
* @see CKEditorPluginButtonsInterface
|
* @see \Drupal\ckeditor\CKEditorPluginButtonsInterface
|
||||||
* @see CKEditorPluginContextualInterface
|
* @see \Drupal\ckeditor\CKEditorPluginContextualInterface
|
||||||
* @see CKEditorPluginConfigurableInterface
|
* @see \Drupal\ckeditor\CKEditorPluginConfigurableInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginBase
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginManager
|
||||||
|
* @see \Drupal\ckeditor\Annotation\CKEditorPlugin
|
||||||
|
* @see plugin_api
|
||||||
*/
|
*/
|
||||||
interface CKEditorPluginInterface extends PluginInspectionInterface {
|
interface CKEditorPluginInterface extends PluginInspectionInterface {
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,15 @@ use Drupal\Core\Extension\ModuleHandlerInterface;
|
||||||
use Drupal\editor\Entity\Editor;
|
use Drupal\editor\Entity\Editor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CKEditor Plugin manager.
|
* Provides a CKEditor Plugin plugin manager.
|
||||||
|
*
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginButtonsInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginContextualInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginConfigurableInterface
|
||||||
|
* @see \Drupal\ckeditor\CKEditorPluginBase
|
||||||
|
* @see \Drupal\ckeditor\Annotation\CKEditorPlugin
|
||||||
|
* @see plugin_api
|
||||||
*/
|
*/
|
||||||
class CKEditorPluginManager extends DefaultPluginManager {
|
class CKEditorPluginManager extends DefaultPluginManager {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue