mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-18 22:13:39 +02:00
Markup properties (#10804)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -13,12 +13,13 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import cardPlugin from '@hcengineering/card'
|
||||
import contact, { Employee, Person } from '@hcengineering/contact'
|
||||
import core, { Doc, matchQuery, Ref, Timestamp } from '@hcengineering/core'
|
||||
import { Execution, parseContext } from '@hcengineering/process'
|
||||
import { ProcessControl } from '@hcengineering/server-process'
|
||||
import { markupToText } from '@hcengineering/text-core'
|
||||
import { getContextValue } from './utils'
|
||||
import cardPlugin from '@hcengineering/card'
|
||||
|
||||
// #region ArrayReduce
|
||||
|
||||
@@ -573,4 +574,12 @@ export function DayFromDate (value: Date): number {
|
||||
return new Date(value).getDate()
|
||||
}
|
||||
|
||||
export function StringFromMarkup (value: string): string {
|
||||
return markupToText(value)
|
||||
}
|
||||
|
||||
export function MarkupFromString (value: string): string {
|
||||
return value
|
||||
}
|
||||
|
||||
// #endregion
|
||||
|
||||
Reference in New Issue
Block a user