Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Editing the CKEditor in

Editing the CKEditor in

Added by Jillian Rowe about 4 years ago

Hello,

I'm trying to modify the editor and I'm having a lot of trouble. I can generate a custom build that uses the plugins I want, but they don't display in the preview, and custom classes and attributes are not displayed either in the preview setting or in the documents/show/:id page.

I've added the Font, PageBreak, and HTMLEmbed plugins. They are all built-in plugins.

In the editor in edit mode -

In preview mode -

Any help would be very appreciated! Eventually, I need to get able to add custom classes to the text, which I tried with :

		this.editor.model.schema.extend('$text', {allowAttributes: ['customClass']});

but it also doesn't seem to really do anything. I can get things working the way I want in the editor, but they just don't work in the preview or in the document view.

Thanks again!


Loading...