Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Text formats #1

Open
rudolfbyker opened this issue Dec 5, 2016 · 1 comment
Open

Text formats #1

rudolfbyker opened this issue Dec 5, 2016 · 1 comment

Comments

@rudolfbyker
Copy link
Member

Migrated from https://github.com/refstudycentre/misc/issues/3

The text format selector on some content types could use some hacking...

Drupal does not allow a default text format to be set for fields if the default value is empty. The only way to set a default text format is globally, by reordering them at /admin/config/content/formats. We need to limit some fields (like the rscl_link field) to only one text format (say, HTML). This can't be done in the rsc_library module, since text formats have to be created manually (you can create them programmatically, but it causes problems when adding / removing text formats or content types).

The entire text format selector should be hidden if there is only one available (or sensible) text format for a given field.

The selector form itself could use some work. Maybe hide the filter help text with a bit of JS, or remove it completely? It is of little to no use to non-technical users anyway.

  • rscl_summary should always use a text format with automatic [[tagging]]
  • full_text should always use Full (or at least quite permissive) HTML

Maybe some code from the better_formats module can help.

@rudolfbyker
Copy link
Member Author

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

No branches or pull requests

1 participant