CoreMedia CKEditor 5 Plugins
    Preparing search index...

    Class BBCodeParagraph

    Rule that transforms a paragraph element to its content followed by two newlines.

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    id: "paragraph"

    Some ID solely used for debugging purpose. Recommended to keep unique among rules, though.

    Methods

    • Transforms an element or parts of it to BBCode. Typical rules will apply mapping according to the element type, name or one of its attributes.

      It is recommended to clean any consumed attribute values, to signal that they got processed.

      Parameters

      • element: HTMLElement

        element to transform

      • content: string

        the current BBCode

      Returns string | undefined

      the new BBCode to continue with; undefined to continue with BBCode as is.