Jump to content

Вопрос по редактору


 Share

Recommended Posts

Вопрос про редактор.
Подскажите, как заменить редактор который у меня на форуме (1 скрин) на тот который установлен как здесь на этом форуме (2 скрин). Где его скачать и где в АЦ ставят. Буду благодарен за ответ.

2017-05-14_23-46-36.png

2017-05-14_23-46-56.png

Link to comment
Share on other sites

Настройки форума изучите, потратье пол часа жизни

Там где редактируется стиль, есть раздел для редактора, в левом меню увидите, там и изменяйте

Link to comment
Share on other sites

9 минут назад, tim34 сказал:

Вопрос про редактор.
Подскажите, как заменить редактор который у меня на форуме (1 скрин) на тот который установлен как здесь на этом форуме (2 скрин). Где его скачать и где в АЦ ставят. Буду благодарен за ответ.

Перейти к ACP > Customizations > Themes > ваша тема > edit HTML and CSS > core > global > forms > editorAttachments и заменит все содержание с ето:

Спойлер
<input name="{$name}" type="hidden" value="{$pluploadKey}">
{{if $forceNoscript}}
	<input name="{$name}_noscript[]" type="file" {{if $multiple}}multiple{{endif}}>
{{else}}
	<noscript>
		<input name="{$name}_noscript[]" type="file" {{if $multiple}}multiple{{endif}}>
		<span class="ipsType_light ipsType_small">
			{{if $allowedFileTypes !== NULL}}
				<strong>{lang="form_upload_accepted"}</strong>
				{expression="implode( ', ', $allowedFileTypes )"}
			{{endif}}
			{{if $multiple and $totalMaxSize}}
				{{if $allowedFileTypes !== NULL}}
					&middot;
				{{endif}}
				<strong>{lang="form_upload_total_max"}</strong>
				{$totalMaxSize}MB
			{{endif}}
			{{if !$multiple or !$totalMaxSize or $maxChunkSize < $totalMaxSize}}
				{{if $allowedFileTypes !== NULL or ( $multiple and $totalMaxSize )}}
					&middot;
				{{endif}}
				<strong>{lang="form_upload_max"}</strong>
				{$maxChunkSize}MB
			{{endif}}
			{{if $maxFiles}}
				<br>{lang="form_upload_max_files" pluralize="$maxFiles"}
			{{endif}}
		</span>
	</noscript>
	{{if $value}}
		{{foreach $value as $id => $file}}
			<input type="hidden" name="{$name}_existing[{$id}]" value="">
		{{endforeach}}
	{{endif}}
	<div data-ipsEditor-toolList>
		{{$editorName = preg_replace( "/(.+?)_(\d+?)_$/", "$1[$2]", mb_substr( $name, 0, -7 ) );}}
		<div data-role='attachmentArea' data-controller='core.global.editor.uploader, core.global.editor.insertable' data-editorID='{$editorName}' class='ipsComposeArea_attachments ipsClearfix ipsAreaBackground_light' id="{$name}_drop_{expression="md5( uniqid() )"}" data-ipsUploader data-ipsUploader-dropTarget='#elEditorDrop_{$name}' data-ipsUploader-button='[data-action="browse"]' {{if $maxFileSize}}data-ipsUploader-maxFileSize="{$maxFileSize}"{{endif}} data-ipsUploader-maxChunkSize="{$maxChunkSize}" {{if $allowedFileTypes}}data-ipsUploader-allowedFileTypes='{expression="json_encode( $allowedFileTypes )"}'{{endif}} data-ipsUploader-name="{$name}" data-ipsUploader-key="{$pluploadKey}" {{if $multiple}}data-ipsUploader-multiple {{if $totalMaxSize}}data-ipsUploader-maxTotalSize="{$totalMaxSize}"{{endif}}{{endif}} {{if $minimize}}data-ipsUploader-minimized{{endif}} data-ipsUploader-insertable data-ipsUploader-postkey="{$editor}" data-ipsUploader-template='core.editor.attachments' {{if $value}}data-ipsUploader-existingFiles='{expression="json_encode( $value )"}'{{endif}} {{if isset( $default )}}data-ipsUploader-default='{$default}'{{endif}}>
			<div class="ipsComposeArea_dropZone {{if $minimize}}ipsComposeArea_dropZoneSmall{{endif}} ipsClearfix" id='elEditorDrop_{$name}'>
				<i class='fa fa-paperclip'></i>
				<div>
					<ul class='ipsList_inline ipsClearfix'>
						<li class='ipsType_normal'style="background-color:rgb(229, 229, 229);border-radius: 0 3px 3px 0;padding: 8px;">
                          <a href='#' class='ipsButton ipsButton_important ipsButton_medium'data-action='browse'style="background-color:#3c6994;">
								<span class='ipsAttachment_supportDrag'>{lang="editor_attach_choose_drag"}</span>
								<span class='ipsAttachment_nonDrag'>{lang="editor_attach_choose_nodrag"}</span>
							</a>
							<span class='ipsAttachment_supportDrag'>{lang="editor_attach_drag"}</span>
							
							{{if $allowedFileTypes !== NULL || $maxFileSize || $totalMaxSize}}
								<br>
								<span class='ipsType_medium ipsType_light'>
									{{if $allowedFileTypes !== NULL}}
										<strong>{lang="form_upload_accepted"}</strong>
										{expression="implode( ', ', $allowedFileTypes )"}
									{{endif}}
									{{if $multiple and $totalMaxSize}}
										{{if $allowedFileTypes !== NULL}}
											&middot;
										{{endif}}
										<strong>{lang="form_upload_total_max"}</strong>
										{$totalMaxSize}MB
									{{endif}}
									{{if $maxFileSize and ( !$multiple or !$totalMaxSize or $maxFileSize < $totalMaxSize )}}
										{{if $allowedFileTypes !== NULL or ( $multiple and $totalMaxSize )}}
											&middot;
										{{endif}}
										<strong>{lang="form_upload_max"}</strong>
										{expression="round($maxFileSize,2)"}MB
									{{endif}}
									{{if $maxFiles}}
										<br>{lang="form_upload_max_files" pluralize="$maxFiles"}
									{{endif}}
								</span>
							{{endif}}
						</li>
						<li class='ipsPos_right ipsResponsive_noFloat'style="position: relative;background-color:rgb(229, 229, 229);border-radius: 0 3px 3px 0;padding: 8px;">
							<a href='#' class='ipsButton ipsButton_important ipsButton_medium' data-ipsMenu id='elEditorAttach_media{expression="md5($editorName)"}'style="background-color:#3c6994;">{lang="editor_attach_other"} <i class='fa fa-caret-down'></i></a>
							<ul class='ipsMenu ipsMenu_auto ipsHide' id='elEditorAttach_media{expression="md5($editorName)"}_menu'>
								<li class='ipsMenu_item'><a href='#' data-ipsDialog data-ipsDialog-fixed data-ipsDialog-forceReload data-ipsDialog-destructOnClose data-ipsDialog-remoteSubmit='false' data-ipsDialog-remoteVerify='false' data-ipsDialog-title='{lang="editor_insert_existing_file"}' data-ipsDialog-url="{url="app=core&module=system&controller=editor&do=myMedia&postKey={$editor}&editorId={$editorName}" csrf="1"}">{lang="editor_insert_existing_file"}</a></li>
								{{if \IPS\Settings::i()->allow_remote_images}}
									<li class='ipsMenu_item'><a href='#' data-ipsDialog data-ipsDialog-forceReload data-ipsDialog-title='{lang="editor_insert_from_url"}' data-ipsDialog-url="{url="app=core&module=system&controller=editor&do=link&image=1&postKey={$editor}&editorId={$editorName}" csrf="1"}">{lang="editor_insert_from_url"}</a></li>
								{{endif}}
							</ul>
						</li>
					</ul>
					<div data-role='fileList' class='ipsComposeArea_attachmentsInner {{if count($value) == 0}}ipsHide{{endif}}'>
						<div data-role='files' class='ipsAreaBackground_reset ipsHide'>
							<p class='ipsType_normal ipsPad_half ipsType_reset'><strong>{lang="editor_uploaded_files"}</strong></p>
							<ul class='ipsList_reset ipsDataList ipsPad_half' data-role='fileContainer'>
								{{foreach $value as $attachID => $file}}
									{{if !$file->isImage()}}
										<li class='ipsDataItem ipsAttach ipsAttach_done ipsContained' id='elAttach_{$attachID}' data-role='file' data-fileid='{$attachID}'>
											<div class='ipsDataItem_generic ipsDataItem_size1 ipsType_center'>
												<i class='fa fa-file ipsType_large'></i>
											</div>
											<div class='ipsDataItem_main'>
												<strong class='ipsDataItem_title ipsType_medium' data-role='title'>{$file->originalFilename}</strong><br><span class='ipsType_light'>{filesize="$file->filesize()"}</span>
											</div>
											<div class='ipsDataItem_generic ipsDataItem_size8 ipsType_right'>
												<ul class='ipsList_inline'>
													<li>
														<a href='#' data-action='insertFile' class='ipsAttach_selection' data-ipsTooltip title='{lang="insert_into_post"}'><i class='fa fa-plus'></i></a>
													</li>
													<li>
														<a href='#' class='ipsType_warning' data-role='deleteFile'><i class='fa fa-trash-o'></i> {lang="delete"}</a>
													</li>
												</ul>
											</div>
										</li>
									{{endif}}
								{{endforeach}}
							</ul>
						</div>
						<div data-role='images' class='ipsAreaBackground_reset {{if count($value) == 0}}ipsHide{{endif}}'>
							<p class='ipsType_normal ipsPad_half ipsType_reset'><strong>{lang="editor_uploaded_images"}</strong></p>
							<ul class='ipsPad_half ipsList_reset ipsGrid ipsGrid_collapsePhone' data-role='fileContainer' data-ipsGrid data-ipsGrid-minItemSize='150' data-ipsGrid-maxItemSize='250'>
								{{foreach $value as $attachID => $file}}
									{{if $file->isImage()}}
										<li class='ipsGrid_span3 ipsAttach ipsContained ipsImageAttach ipsPad_half ipsAreaBackground_light' id='elAttach_{$attachID}' data-role='file' data-fileid='{$attachID}' data-fullsizeurl='{$file->url}' data-thumbnailurl='{$file->attachmentThumbnailUrl}' data-isImage="1">
											<ul class='ipsList_inline ipsImageAttach_controls'>
												<li>
													<a href='#' data-action='insertFile' class='ipsAttach_selection' data-ipsTooltip title='{lang="insert_into_post"}'><i class='fa fa-plus'></i></a>
												</li>
												<li class='ipsPos_right' data-role='deleteFileWrapper'>
													<a href='#' data-role='deleteFile' class='ipsButton ipsButton_verySmall ipsButton_light' data-ipsTooltip title='{lang="delete"}'><i class='fa fa-trash-o'></i></a>
												</li>
											</ul>

											<div class='ipsImageAttach_thumb ipsType_center' style='background-image: url( "{expression="str_replace( array( '(', ')' ), array( '\(', '\)' ), $file->attachmentThumbnailUrl )"}" )' data-role='preview' data-grid-ratio='65' data-action='insertFile'>
												<img src='{$file->url}' alt=''>
											</div>
											<h2 class='ipsType_reset ipsAttach_title ipsTruncate ipsTruncate_line ipsType_medium' data-role='title'>{$file->originalFilename}</h2>
											<p class='ipsType_light'>{filesize="$file->filesize()"}</p>
										</li>
									{{endif}}
								{{endforeach}}
							</ul>
						</div>
					</div>
				</div>
			</div>		
		</div>
	</div>
{{endif}}

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...