Posted By Will Strohl on 12/6/2022 9:30 PM Posted By Gothic Wizard on 12/6/2022 4:19 PM Hi Timo the problem is I ALREADY had AllowedContent = true. And it is still stripping it out. I found if I manaully add the tags one by one under extraAllowedContent that helps but some things still getting stripped. Any ideas? Bug? Hello again...! :) Depending on the content you're trying to add to the HTML editor, it will always get stripped out in my experience. :( All online WYSIWYG editors are notorious for that. This is why a lot of implementations for text editing are moving toward Monaco-style implementations. Though, that would not be the best editor for most CMSs. :(
Posted By Gothic Wizard on 12/6/2022 4:19 PM Hi Timo the problem is I ALREADY had AllowedContent = true. And it is still stripping it out. I found if I manaully add the tags one by one under extraAllowedContent that helps but some things still getting stripped. Any ideas? Bug?
Hi Timo the problem is I ALREADY had AllowedContent = true. And it is still stripping it out. I found if I manaully add the tags one by one under extraAllowedContent that helps but some things still getting stripped. Any ideas? Bug?
Hello again...! :)
Depending on the content you're trying to add to the HTML editor, it will always get stripped out in my experience. :(
All online WYSIWYG editors are notorious for that. This is why a lot of implementations for text editing are moving toward Monaco-style implementations. Though, that would not be the best editor for most CMSs. :(
I stand corrected it is now working, it's just the 'preview' when you go to source back to HTML looks 'stripped' but once I published the article it displayed properly. I did have to add "class,lang,dir,ref_src,script,lang,a href" under allowed extra conent, but it's working. Thank you both for the assist.
My only outstanding issue is getting one of the media embed functions to work. As that would make the whole copy/paste embed code moot as I'd just have te copy/paste the web link. However as I said above when I enter a link I still get "Failed to fetch content for the given URL."
Per the request here is my file settings file, note I replaced all < with a * so it would display properly;
*?xml version="1.0" encoding="utf-8"?> *EditorProviderSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> *OverrideFileOnUpload>false*/OverrideFileOnUpload> *FileListPageSize>20*/FileListPageSize> *FileListViewMode>DetailView*/FileListViewMode> *DefaultLinkMode>RelativeURL*/DefaultLinkMode> *DefaultLinkProtocol>Https*/DefaultLinkProtocol> *UseAnchorSelector>true*/UseAnchorSelector> *ShowPageLinksTabFirst>false*/ShowPageLinksTabFirst> *SubDirs>false*/SubDirs> *InjectSyntaxJs>true*/InjectSyntaxJs> *BrowserRootDirId>-1*/BrowserRootDirId> *BrowserRootDirForImgId>-1*/BrowserRootDirForImgId> *UploadDirId>-1*/UploadDirId> *UploadDirForImgId>-1*/UploadDirForImgId> *ResizeHeightUpload>-1*/ResizeHeightUpload> *ResizeWidthUpload>-1*/ResizeWidthUpload> *ResizeHeight>-1*/ResizeHeight> *ResizeWidth>-1*/ResizeWidth> *ToolBarRoles> *ToolbarRoles> *RoleId>0*/RoleId> *Toolbar>Full*/Toolbar> */ToolbarRoles> */ToolBarRoles> *UploadSizeRoles> *UploadSizeRoles> *RoleId>0*/RoleId> *UploadFileLimit>-1*/UploadFileLimit> */UploadSizeRoles> */UploadSizeRoles> *UploadFileSizeLimit>0*/UploadFileSizeLimit> *BrowserMode>None*/BrowserMode> *Browser>standard*/Browser> *ImageButtonMode>StandardButton*/ImageButtonMode> *ImageButton>standard*/ImageButton> *BrowserRoles>0;Administrators;*/BrowserRoles> *SettingMode>Portal*/SettingMode> *Config allowedContent="false" autoGrow_bottomSpace="0" autoGrow_maxHeight="0" autoGrow_minHeight="200" autoGrow_onStartup="false" autoParagraph="true" autosave_delay="25" autoUpdateElement="true" baseFloatZIndex="10000" basicEntities="true" blockedKeystrokes="[ CKEDITOR.CTRL + 66, CKEDITOR.CTRL + 73, CKEDITOR.CTRL + 85 ]" browserContextMenuOnCtrl="true" clipboard_defaultContentType="html" colorButton_colors="00923E,F8C100,28166F" colorButton_enableMore="true" contentsLangDirection="Inherit" dataIndentationChars=" " defaultLanguage="en" defaultLinkType="url" dialog_backgroundCoverColor="white" dialog_backgroundCoverOpacity="0.5" dialog_buttonsOrder="OS" dialog_magnetDistance="20" dialog_noConfirmCancel="0" dialog_startupFocusTab="false" disableNativeSpellChecker="true" disableNativeTableHandles="true" disableObjectResizing="false" disableReadonlyStyling="false" div_wrapTable="false" docType="" enableTabKeyTools="true" enterMode="P" entities="true" entities_additional="#39" entities_greek="false" entities_latin="false" entities_processNumerical="false" extraPlugins="dnnpages,wordcount,notification" filebrowserWindowFeatures="location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes" filebrowserWindowHeight="70%" filebrowserWindowWidth="80%" fillEmptyBlocks="true" flashAddEmbedTag="false" flashConvertOnEdit="false" flashEmbedTagOnly="false" floatSpaceDockedOffsetX="0" floatSpaceDockedOffsetY="0" floatSpacePinnedOffsetX="0" floatSpacePinnedOffsetY="0" fontSize_sizes="12px;2.3em;130%;larger;x-small" font_names="Arial;Times New Roman;Verdana" forceEnterMode="false" forcePasteAsPlainText="false" forceSimpleAmpersand="false" format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div" fullPage="false" height="200" htmlEncodeOutput="false" ignoreEmptyParagraph="true" image_previewText="Lorem ipsum dolor..." image_removeLinkByEmptyURL="true" indentOffset="40" indentUnit="px" linkJavaScriptLinksAllowed="false" linkShowAdvancedTab="true" linkShowTargetTab="true" magicline_color="#FF0000" magicline_holdDistance="0.5" magicline_keystrokeNext="0" magicline_keystrokePrevious="0" magicline_putEverywhere="false" magicline_triggerOffset="30" menu_groups="clipboard,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div" menu_subMenuDelay="400" oembed_maxWidth="0" oembed_maxHeight="0" pasteFromWordCleanupFile="" pasteFromWordNumberedHeadingToList="false" pasteFromWordPromptCleanup="false" pasteFromWordRemoveFontStyles="true" pasteFromWordRemoveStyles="true" protectedSource="[( /[\s\S]*?<\/i>/gi ),( /[\s\S]*?<\/span>/gi ),( /[\s\S]*?<\/em>/gi ),( /[\s\S]*?<\/button>/gi )]" readOnly="false" removeFormatAttributes="class,style,lang,width,height,align,hspace,valign" removeFormatTags="b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var" resize_dir="both" resize_enabled="true" resize_maxHeight="600" resize_maxWidth="3000" resize_minHeight="250" resize_minWidth="750" scayt_autoStartup="false" scayt_maxSuggestions="0" shiftEnterMode="BR" skin="moono" smiley_columns="8" sourceAreaTabSize="20" startupFocus="false" startupMode="wysiwyg" startupOutlineBlocks="false" startupShowBorders="true" tabIndex="0" tabSpaces="0" templates="default" templates_replaceContent="true" toolbarCanCollapse="false" toolbarGroupCycling="true" toolbarLocation="Top" toolbarStartupExpanded="true" undoStackSize="20" useComputedState="true" width="99%"> *CodeMirror theme="default" lineNumbers="true" lineWrapping="true" matchBrackets="true" autoCloseTags="false" enableSearchTools="true" enableCodeFolding="true" enableCodeFormatting="true" autoFormatOnStart="false" autoFormatOnUncomment="true" highlightActiveLine="true" highlightMatches="true" showTabs="false" showFormatButton="true" showCommentButton="true" showUncommentButton="true" /> *WordCount showCharCount="false" showWordCount="true" /> */Config> */EditorProviderSettings>
Please realise that you should not use AllowedContent = true or allow script tags in a configuration that will be used by non admins! It's a security risk if you do allow script tags to be added.
Can you post some of the links you have issues with? Also, if you are regularly publishing the same kind of links it's worth it to use a structured content module and not the HTML module. I use Open Content for that.
Posted By Timo Breumelhof (40FINGERS) on 12/7/2022 5:16 AM Can you post some of the links you have issues with? Also, if you are regularly publishing the same kind of links it's worth it to use a structured content module and not the HTML module. I use Open Content for that.
https://twitter.com/CP_Ne.../1600671697782407170
https://www.youtube.com/watch?v=TSJSQ4ib1Qw
Really any media link gives me that error. All I need is a twitter and YT post embed ability. Again my work around is copying their share -> embed code. But it would be so much nicer to have this media plugin work. I uploaded all the dependant files so unsure what the issue is. Thanks for any help.
I tried inserting the links a few times and once I got your error the other 5 times they worked. I do see that my Add Blocker is blocking scripts from YouTube and Twitter, maybe that could be the cause? (although they are also blocked when the plugin does work)
Posted By Timo Breumelhof (40FINGERS) on 12/8/2022 3:06 AM I tried inserting the links a few times and once I got your error the other 5 times they worked. I do see that my Add Blocker is blocking scripts from YouTube and Twitter, maybe that could be the cause? (although they are also blocked when the plugin does work)
Aha! Very good point. True testing should be done in Incognito/Private mode in this scenario. :)
Posted By Timo Breumelhof (40FINGERS) on 12/8/2022 6:06 AM I tried inserting the links a few times and once I got your error the other 5 times they worked. I do see that my Add Blocker is blocking scripts from YouTube and Twitter, maybe that could be the cause? (although they are also blocked when the plugin does work)
Just to eliminate that I turned adblock plus off and privacy badger off. Tried a few times and every time I got that message. Didn't work once.
Hmm, well that's weird. Do you have the option to try in another browser / on another machine / other DNN installation?
Posted By Timo Breumelhof (40FINGERS) on 12/9/2022 2:57 PM Hmm, well that's weird. Do you have the option to try in another browser / on another machine / other DNN installation?
Just to be clear this all correct.
Under ExtraPlugins: dnnpages,wordcount,notification,embedbase,embed,dialogui,dialog,lineutils,widget,oembed,notificationaggregator
and inserted in CKToolbarButtons.xml;
ToolbarName>Embed ToolbarIcon>embed.png
As far as the setting files that's all that I need to do correct?
Posted By Timo Breumelhof (40FINGERS) on 12/9/2022 11:57 AM Hmm, well that's weird. Do you have the option to try in another browser / on another machine / other DNN installation?
Beyond using Incognito/Private mode, this is the only way to truly troubleshoot client-side issues. :)
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.