Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MULTI_PLUGIN in combination with listings #692

Open
Juergen-aus-Zuendorf opened this issue Nov 30, 2022 · 2 comments
Open

MULTI_PLUGIN in combination with listings #692

Juergen-aus-Zuendorf opened this issue Nov 30, 2022 · 2 comments

Comments

@Juergen-aus-Zuendorf
Copy link
Contributor

Hi,

there seems to be a problem with MULTI_PLUGIN_CLOSE in combination with listings.

For example, I have the following wiki text (appearance in native editor):

===== Spielplatz =====

~~MULTI_PLUGIN_OPEN~~

~~MULTI_PLUGIN_CLOSE~~

Liste:

  - Zeile 1 \\ Folgezeile 1
  - Zeile 2 \\ Folgezeile 2

If I open and save the page with this syntax in CKGEditor, everything is fine. If I insert some code afterwards (e.g. a line break) between MULTI_PLUGIN_OPEN and MULTI_PLUGIN_CLOSE, the listing code changes to this (again in native editor):

===== Spielplatz =====

~~MULTI_PLUGIN_OPEN~~

~~MULTI_PLUGIN_CLOSE~~

Liste:

  - Zeile 1

Folgezeile 1

  - Zeile 2

Folgezeile 2

The lines "Folgezeile ..." are no longer part of the listing.

Regards
Juergen

@turnermm
Copy link
Owner

The close macro goes after the code you are trying to protect

@Juergen-aus-Zuendorf
Copy link
Contributor Author

Juergen-aus-Zuendorf commented Jan 10, 2023

Ok, had tried to explain the syntax as simply as possible. But that was actually not enough!

So, here is the description in a – I hope – clearer form:

===== Spielplatz =====

~~MULTI_PLUGIN_OPEN~~
some code that has to be protected (e.g., for the data plugin)
~~MULTI_PLUGIN_CLOSE~~

Liste:
  - Zeile 1 \\ Folgezeile 1
  - Zeile 2 \\ Folgezeile 2

Here is the result:
image

If I open and save the page with this syntax in CKGEditor, everything is fine. If I insert or delete some code afterward (for example add or delete line breaks) between MULTI_PLUGIN_OPEN and MULTI_PLUGIN_CLOSE, the listing code changes to this (again in native editor):

===== Spielplatz =====

~~MULTI_PLUGIN_OPEN~~

some code that has to be protected (e.g., for the data plugin)
~~MULTI_PLUGIN_CLOSE~~

Liste:

  - Zeile 1

Folgezeile 1

  - Zeile 2

Folgezeile 2

or as screenshot:
image

The lines "Folgezeile ..." are no longer indented part of the listing.

Regards
Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants