tinymce

15分钟学会Lua (附原文作者教学视频《一小时学会Lua》)

喜你入骨 提交于 2020-08-17 03:24:07
从hacker news 上看到的,很久前的一篇文章,网上可以找到各种翻译版本的,我还是看原文好了,看了一点,然后我去给网站加了个语法高亮,用的 Prism ,也是 tinyMCE的语法高亮方案 ,但把下载回来的配色方案加到tinyMCE会跟原来的样式冲突,不调整TinyMCE默认配色也能接受,只是前后台的样式不太一致而已,也不影响使用,于是作罢 🙃 PS: 最后作者还做了个视频 《一小时学会Lua》 ,请自备梯子,我嵌入到文章结尾了 -- Two dashes start a one-line comment. --[[ Adding two ['s and ]'s makes it a multi-line comment. --]] ---------------------------------------------------- -- 1. Variables and flow control. ---------------------------------------------------- num = 42 -- All numbers are doubles. -- Don't freak out, 64-bit doubles have 52 bits for -- storing exact int values; machine precision

Trying to setup responsive file manager with TinyMCE but get a 404 error

牧云@^-^@ 提交于 2020-08-06 05:42:48
问题 I use TinyMCE with responsivefilemanager but whenever I try to open the file manager I directly get a 404 error in that popup, and If you don't know, 404 means not found. Here is my file structure Website's main parent folder/public_html myapp folder for the whole app my HTML & some PHP files which use TinyMCE and responsivefilemanager my tinyMCE's init.js file plugins folder for all my 3rd party plugins TinyMCE folder which contains TinyMCE itself other folders you find inside TinyMCE a

如何在Joomla网站内容模块中插入iframe框架

大憨熊 提交于 2020-08-05 08:23:59
如果您将一些iframe代码粘贴到编辑器中(即默认的Joomla TinyMCE 编辑器),它将自动从内容中剥离这些代码。 让我们学习如何在“ Joomla管理”面板中对某些配置进行更改,然后就可以简单实用iframe框架了。 第一步: 从顶部菜单转到扩展 -> 插件。 第二步: 在“插件”页面上,您可以找到一个名为“选择类型”的下拉过滤器选项。在下拉菜单中选择编辑器。 现在,“插件”页面列出了所有可用的编辑器。从列表中单击编辑器 – TinyMCE。 第三步: 接下来,在编辑页面上转到插件 选项卡。在插件的几乎底部,您可以找到名为禁止元素的选项 。如您所见,此处列出了iframe。从该字段中删除iframe。然后单击顶部的“ 保存并关闭”按钮以保存您的更改并关闭编辑部分。 现在,您知道如何将任何iframe内容添加到Joomla文章的正文部分。 来源: oschina 链接: https://my.oschina.net/u/3761169/blog/4305320

如何在Joomla网站内容模块中插入iframe框架

↘锁芯ラ 提交于 2020-07-28 17:57:50
如果您将一些iframe代码粘贴到编辑器中(即默认的Joomla TinyMCE 编辑器),它将自动从内容中剥离这些代码。 让我们学习如何在“ Joomla管理”面板中对某些配置进行更改,然后就可以简单实用iframe框架了。 第一步: 从顶部菜单转到扩展 -> 插件。 第二步: 在“插件”页面上,您可以找到一个名为“选择类型”的下拉过滤器选项。在下拉菜单中选择编辑器。 现在,“插件”页面列出了所有可用的编辑器。从列表中单击编辑器 – TinyMCE。 第三步: 接下来,在编辑页面上转到插件 选项卡。在插件的几乎底部,您可以找到名为禁止元素的选项 。如您所见,此处列出了iframe。从该字段中删除iframe。然后单击顶部的“ 保存并关闭”按钮以保存您的更改并关闭编辑部分。 现在,您知道如何将任何iframe内容添加到Joomla文章的正文部分。 来源: oschina 链接: https://my.oschina.net/u/4257499/blog/4306202

TinyMCE disappears in Blazor page

眉间皱痕 提交于 2020-06-27 12:48:07
问题 I want to use TinyMCE in a Blazor server side app, but it shows up on page load for a second and then disappears. I blame it on StatehasChanged() thus I have written an interop function that re-initializes TinyMCE and is called in the OnAfterRender() of the page. This is the JS interop function: initTinyMce: function (tinyMceID) { tinymce.init({ selector: 'textarea.tinyMce' }); return ""; //var editor = tinyMCE.get(tinyMceID); //if (editor && editor instanceof tinymce.Editor) { // editor.init

Add properties to TinyMce after init()?

独自空忆成欢 提交于 2020-05-29 07:18:51
问题 Consider the initialization: function initMyTinymce() { tinymce.init({ selector: $(this).attr("id"), directionality: "ltr", }); } Is it possible to add properties to tinyMCE after init() ? For example: plugins: "link,code,textcolor", relative_urls: false, convert_urls: false, remove_script_host: false I'm using TinyMce 4.1.6 (2014-10-08). 回答1: Yes, this is possible, but parameters that get red on initialisation only won't have an impact if they get set later on. Example: To change the

javascript detect when a certain element is removed

做~自己de王妃 提交于 2020-05-26 07:20:20
问题 Is there a way in javascript to detect when a certain HTML element is removed in javascript/jQuery? In TinyMCE I am inserting a slider, and I would like to remove the entire thing when certain elements are removed in WYSIWIG. 回答1: In most modern browsers you can use the MutationObserver to achieve this. The way you would do it would be something like this: var parent = document.getElementById('parent'); var son = document.getElementById('son'); console.log(parent); var observer = new

javascript detect when a certain element is removed

牧云@^-^@ 提交于 2020-05-26 07:20:06
问题 Is there a way in javascript to detect when a certain HTML element is removed in javascript/jQuery? In TinyMCE I am inserting a slider, and I would like to remove the entire thing when certain elements are removed in WYSIWIG. 回答1: In most modern browsers you can use the MutationObserver to achieve this. The way you would do it would be something like this: var parent = document.getElementById('parent'); var son = document.getElementById('son'); console.log(parent); var observer = new

TinyMCE and Laravel

感情迁移 提交于 2020-05-13 09:03:35
问题 I'm trying to use tinyMCE with my Laravel project. The problem is when I store the new article the html tags are not working. They're showing up like a plain text on display on my laravel view: This is the code implemented in create.blade.php: <script type="text/javascript" src="{{ asset('/js/tinymce/tinymce.min.js') }}"></script> <script type="text/javascript"> tinymce.init({ selector : "textarea", plugins : ["advlist autolink lists link image charmap print preview anchor", "searchreplace