プロジェクト

全般

プロフィール

Vote #73736

未完了

Collapse doesn't work with section edit link

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
0
issue_org_id:
13723
author_id:
68541
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
60
ステータス-->[New]

説明

Collapsed with @collapse@ macro sections don't have an edit link. More than this, all following edit links don't work properly, because service-side numeration take into account all sections, even collapsed, but client-side doesn't.


journals

I can't reproduce the “more than this” part.

Considering the first part. Here is what we have in @app/helpers/application_helper.rb (line 527)@:

<pre><code class="ruby">
macros = catch_macros(text)
#...
parse_sections(text, project, obj, attr, only_path, options)
</code></pre>

@catch_macros@ is a mutator, all instances of @{{ macro ... }}@ in @text@ are placed with @{{macro(N)}}@, so there is no chance @parse_sections@ can see @<h1>...@ inside. I don't know whether it was made on purpose or not, but I believe you can *reject this issue*.
--------------------------------------------------------------------------------
It happens to me as well (the part before the "more than this").
Is there a reason you suggested rejecting this issue?
--------------------------------------------------------------------------------
It's not exactly a bug, it looks more like a feature.
--------------------------------------------------------------------------------
Maybe an unavoidable behavior, but a feature?
If there are sections inside a collapser, why shouldn't the user be able to edit them?
I think it's best if the formatter treats the collapse as a section. That way you can edit the entire collapse, or any section within it, same as you would any section.

--------------------------------------------------------------------------------
Yeah, it would be perfect and natural, but unfortunately macros are just not made this way.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,26974,Collapse macro conflicts with header section edit buttons

Admin Redmine さんが約2年前に更新

  • カテゴリText formatting_26 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0