mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
We can add a skip intro button on video
This commit is contained in:
parent
f712438ec1
commit
f9c735b2bb
196 changed files with 6055 additions and 3586 deletions
12
node_modules/tinymce/plugins/lists/plugin.js
generated
vendored
12
node_modules/tinymce/plugins/lists/plugin.js
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* TinyMCE version 7.0.1 (2024-04-10)
|
||||
* TinyMCE version 7.1.0 (2024-05-08)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
@ -631,7 +631,7 @@
|
|||
const getForcedRootBlock = option('forced_root_block');
|
||||
const getForcedRootBlockAttrs = option('forced_root_block_attrs');
|
||||
|
||||
const createTextBlock = (editor, contentNode) => {
|
||||
const createTextBlock = (editor, contentNode, attrs = {}) => {
|
||||
const dom = editor.dom;
|
||||
const blockElements = editor.schema.getBlockElements();
|
||||
const fragment = dom.createFragment();
|
||||
|
@ -640,7 +640,10 @@
|
|||
let node;
|
||||
let textBlock;
|
||||
let hasContentNode = false;
|
||||
textBlock = dom.create(blockName, blockAttrs);
|
||||
textBlock = dom.create(blockName, {
|
||||
...blockAttrs,
|
||||
...attrs.style ? { style: attrs.style } : {}
|
||||
});
|
||||
if (!isBlock(contentNode.firstChild, blockElements)) {
|
||||
fragment.appendChild(textBlock);
|
||||
}
|
||||
|
@ -1133,7 +1136,8 @@
|
|||
const normalizedEntries = normalizeEntries(entries);
|
||||
return map(normalizedEntries, entry => {
|
||||
const content = !isEntryComment(entry) ? fromElements(entry.content) : fromElements([SugarElement.fromHtml(`<!--${ entry.content }-->`)]);
|
||||
return SugarElement.fromDom(createTextBlock(editor, content.dom));
|
||||
const listItemAttrs = isEntryList(entry) ? entry.itemAttributes : {};
|
||||
return SugarElement.fromDom(createTextBlock(editor, content.dom, listItemAttrs));
|
||||
});
|
||||
};
|
||||
const indentedComposer = (editor, entries) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue