mirror of https://github.com/Squidex/squidex.git
committed by
GitHub
59 changed files with 2778 additions and 2431 deletions
@ -0,0 +1,46 @@ |
|||||
|
// ==========================================================================
|
||||
|
// Squidex Headless CMS
|
||||
|
// ==========================================================================
|
||||
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
||||
|
// All rights reserved. Licensed under the MIT license.
|
||||
|
// ==========================================================================
|
||||
|
|
||||
|
using Squidex.Text.RichText.Model; |
||||
|
|
||||
|
namespace Squidex.Domain.Apps.Core.Contents; |
||||
|
|
||||
|
public static class SquidexRichText |
||||
|
{ |
||||
|
public static class NodeTypes |
||||
|
{ |
||||
|
public const string ContentLink = "contentLink"; |
||||
|
} |
||||
|
|
||||
|
private class ExtendedOptions : RichTextOptions |
||||
|
{ |
||||
|
public override bool IsSupportedMarkType(string type) |
||||
|
{ |
||||
|
return base.IsSupportedMarkType(type) || IsExtension(type); |
||||
|
} |
||||
|
|
||||
|
public override bool IsSupportedNodeType(string type) |
||||
|
{ |
||||
|
return base.IsSupportedNodeType(type) || IsExtension(type); |
||||
|
} |
||||
|
|
||||
|
private static bool IsExtension(string type) |
||||
|
{ |
||||
|
return type.StartsWith("x-", StringComparison.OrdinalIgnoreCase); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static readonly RichTextOptions Options = new ExtendedOptions |
||||
|
{ |
||||
|
NodeTypes = |
||||
|
[ |
||||
|
..RichTextOptions.Default.NodeTypes, |
||||
|
NodeTypes.ContentLink, |
||||
|
], |
||||
|
MarkTypes = RichTextOptions.Default.MarkTypes, |
||||
|
}; |
||||
|
} |
||||
@ -1,13 +1,6 @@ |
|||||
@import 'mixins'; |
@import 'mixins'; |
||||
@import 'vars'; |
@import 'vars'; |
||||
|
|
||||
.button-container { |
|
||||
display: inline-block; |
|
||||
max-width: none; |
|
||||
min-width: 5rem; |
|
||||
text-align: right; |
|
||||
} |
|
||||
|
|
||||
sqx-language-selector { |
sqx-language-selector { |
||||
text-align: right; |
text-align: right; |
||||
} |
} |
||||
File diff suppressed because it is too large
Binary file not shown.
|
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue