Refactor #3965 - For Editor

pull/3997/head
Tuğçe Küçükoğlu 2023-05-25 17:18:27 +03:00
parent 2d7d8517f0
commit 520962b145
3 changed files with 76 additions and 987 deletions

View File

@ -132,7 +132,7 @@ export const defaultOptions = {
tooltip: 1100 tooltip: 1100
}, },
pt: undefined, pt: undefined,
unstyled: false unstyled: true
}; };
const PrimeVueSymbol = Symbol(); const PrimeVueSymbol = Symbol();

View File

@ -100,21 +100,61 @@ export interface EditorPassThroughOptions {
*/ */
toolbar?: EditorPassThroughOptionType; toolbar?: EditorPassThroughOptionType;
/** /**
* Uses to pass attributes to the formats's DOM element. * Uses to pass attributes to the formats' DOM element.
*/ */
formats?: EditorPassThroughOptionType; formats?: EditorPassThroughOptionType;
/** /**
* Uses to pass attributes to the select's DOM element. * Uses to pass attributes to the header's DOM element.
*/ */
select?: EditorPassThroughOptionType; header?: EditorPassThroughOptionType;
/** /**
* Uses to pass attributes to the option's DOM element. * Uses to pass attributes to the option's DOM element.
*/ */
option?: EditorPassThroughOptionType; option?: EditorPassThroughOptionType;
/** /**
* Uses to pass attributes to the button's DOM element. * Uses to pass attributes to the bold's DOM element.
*/ */
button?: EditorPassThroughOptionType; bold?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the italic's DOM element.
*/
italic?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the underline's DOM element.
*/
underline?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the color's DOM element.
*/
color?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the background's DOM element.
*/
background?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the list's DOM element.
*/
list?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the select's DOM element.
*/
select?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the link's DOM element.
*/
link?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the image's DOM element.
*/
image?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the code block's DOM element.
*/
codeBlock?: EditorPassThroughOptionType;
/**
* Uses to pass attributes to the clean's DOM element.
*/
clean?: EditorPassThroughOptionType;
/** /**
* Uses to pass attributes to the content's DOM element. * Uses to pass attributes to the content's DOM element.
*/ */
@ -173,6 +213,11 @@ export interface EditorProps {
* @type {EditorPassThroughOptions} * @type {EditorPassThroughOptions}
*/ */
pt?: EditorPassThroughOptions; pt?: EditorPassThroughOptions;
/**
* When enabled, it removes component related styles in the core.
* @defaultValue false
*/
unstyled?: boolean;
} }
/** /**

File diff suppressed because it is too large Load Diff