You are here

function n1ed_help in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Implements hook_help().

File

./n1ed.module, line 102
Main code for N1ED module.

Code

function n1ed_help($path, $arg) {
  switch ($path) {
    case "help.page.n1ed":
      return "\n\n                <h3>" . t("About N1ED") . "</h3>\n\n                <p>" . t('<a href=":website">N1ED add-on for CKEditor</a> adds a lot of features to your editor. N1ED is a multi-add-on meaning it will connect different plugins from N1ED Ecosystem which you specify in the preferences.', [
        ":website" => "https://n1ed.com",
      ]) . "</p>\n\n\n                <h3>" . t('Installation') . "</h3>\n\n                <p>" . t('The installation process is typical for Drupal 8 - just install N1ED module, all dependencies will be linked automatically. Also this module will attach to those Text Formats</a> which have CKEditor and are fine to be used by article editors. For example it will attach to "Full format" and will not to "Plain text" or "Basic HTML"') . "</p>\n\n\n                <h3>" . t('Configuration') . "</h3>\n\n                <p>" . t('Acting as standard CKEditor Drupal 8 submodule N1ED will be enabled in those Text Formats which have CKEditor and where N1ED is not disabled. Go to the <a href=":formats">Text Formats page</a> and you can see the badge "N1ED" near formats N1ED is marked enabled in. Go into text format to configure N1ED there by clicking "Configure" button.', [
        ":formats" => Url::fromRoute('filter.admin_overview')
          ->toString(),
      ]) . "</p>\n\n                <p>" . t('When you are on some text format page, first you need to set you N1ED API key once. N1ED configuration widget will lead you through this simple process and attach existing N1ED account or register a new one for free. Your default API key is demo key, and it is also workable but does not have access to some online services, so we recommend you to change it first of all.') . "</p>\n\n                <p>" . t('Why do you need to link an account? It is easy: because your API key is a reference to your configuration. N1ED will be auto updated using CDN, also cloud of N1ED provides some services like getting screenshots of custom blocks you define, storing configurations and sharing them between your different websites if required, fast switching configurations, and more services in future versions.') . "</p>\n\n                <p>" . t('Then you can enable or disable N1ED for each text format independently. It is recommended to use N1ED in text formats available for administrator/articles editor users and disable for restricted formats which used in comments form or somewhere like it.') . "</p>\n\n\n                <h3>" . t('Editing an articles') . "</h3>\n\n                <p>" . t('You will go to the article page as before and edit your content with CKEditor powered with N1ED, Bootstrap Editor, File Manager, Image Editor and other currently available and available in future plugins for CKEditor which are published inside <a href=":plugins">N1ED Ecosystem</a>.', [
        ":plugins" => "https://n1ed.com/plugins",
      ]) . "</p>\n\n\n\n                <h3>" . t('Troubleshooting') . "</h3>\n\n                <p>" . t('If you do not see these features on your CKEditor, please be sure you chose appripriate Text Format (which has N1ED attached). In some cases your default text format can be "Basic HTML" which may require to switch fo "Full HMTL" in the Drupal combobox right under CKEditor area.') . "</p>\n\n                <p>" . t('In case of any problems please check <a href=":docs">documentation</a> or <a href=":support">ask support via e-mail</a>.', [
        ":docs" => "https://n1ed.com/docs",
        ":support" => "mailto:support@n1ed.zendesk.com",
      ]) . "</p>\n\n            ";
  }
}